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.
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#6cea116a flags:# hashtag:flags.0?string area:flags.1?MediaArea offset:string limit:int = stories.FoundStories;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
hashtag | flags.0?string | Hashtag (without the # ) |
area | flags.1?MediaArea | A mediaAreaGeoPoint or a mediaAreaVenue. Note mediaAreaGeoPoint areas may be searched only if they have an associated address . |
peer | flags.2?InputPeer | |
offset | string | Offset for pagination: initially an empty string, then the next_offset from the previously returned stories.foundStories. |
limit | int | Maximum number of results to return, see pagination |
Code | Type | Description |
---|---|---|
400 | HASHTAG_INVALID | The specified hashtag is invalid. |
Represents a geolocation tag attached to a story.
Represents a location tag attached to a story, with additional venue information.
How to fetch results from large lists of objects.
Stories found using global story search ».
Telegram users and channels can easily post and view stories through the API.