channels.SearchPosts#

class pyrogram.raw.functions.channels.SearchPosts#

Globally search for posts from public channels » (including those we aren’t a member of) containing a specific hashtag.

Details:
  • Layer: 187

  • ID: D19F987B

Parameters:
  • hashtag (str) – The hashtag to search, without the # character.

  • offset_rate (int 32-bit) – Initially 0, then set to the next_rate parameter of messages.messagesSlice

  • offset_peer (InputPeer) – Offsets for pagination, for more info click here

  • offset_id (int 32-bit) – Offsets for pagination, for more info click here

  • limit (int 32-bit) – Maximum number of results to return, see pagination

Returns:

messages.Messages