stories.SearchPosts#

class pyrogram.raw.functions.stories.SearchPosts#

Globally search for stories using a hashtag or a location media area, see here » for more info on the full flow.

Details:
  • Layer: 198

  • ID: D1810907

Parameters:
  • offset (str) – Offset for pagination: initially an empty string, then the next_offset from the previously returned stories.foundStories.

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

  • hashtag (str, optional) – Hashtag (without the #)

  • area (MediaArea, optional) – A mediaAreaGeoPoint or a mediaAreaVenue. Note mediaAreaGeoPoint areas may be searched only if they have an associated address.

  • peer (InputPeer, optional) – If set, returns only stories posted by this peer.

Returns:

stories.FoundStories