stories.searchPosts #

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

Either hashtag or area must be set when invoking the method.

Layer 223

stories.foundStories#e2de7737 flags:# count:int stories:Vector<FoundStory> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = stories.FoundStories;
---functions---
stories.searchPosts#d1810907 flags:# hashtag:flags.0?string area:flags.1?MediaArea peer:flags.2?InputPeer offset:string limit:int = stories.FoundStories;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
hashtagflags.0?stringHashtag (without the #)
areaflags.1?MediaAreaA mediaAreaGeoPoint or a mediaAreaVenue.
Note mediaAreaGeoPoint areas may be searched only if they have an associated address.
peerflags.2?InputPeerIf set, returns only stories posted by this peer.
offsetstringOffset for pagination: initially an empty string, then the next_offset from the previously returned stories.foundStories.
limitintMaximum number of results to return, see pagination

Result #

stories.FoundStories

Only users can use this method #

Possible errors #

CodeTypeDescription
400HASHTAG_INVALIDThe specified hashtag is invalid.

mediaAreaGeoPoint #

Represents a geolocation tag attached to a story.

mediaAreaVenue #

Represents a location tag attached to a story, with additional venue information.

Pagination in the API #

How to fetch results from large lists of objects.

stories.foundStories #

Stories found using global story search ».

Telegram Stories #

Telegram users and channels can easily post and view stories through the API.