telegram api method · layer 229 · #d1810907
stories.searchPosts
Globally search for stories using a hashtag or a location media area, see here » for more info on the full flow.
definition
stories.searchPosts#d1810907 flags:# hashtag:flags.0?string area:flags.1?MediaArea peer:flags.2?InputPeer offset:string limit:int = stories.FoundStories;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
hashtag | string | Hashtag (without the #) |
area | MediaArea | A mediaAreaGeoPoint or a mediaAreaVenue. Note mediaAreaGeoPoint areas may be searched only if they have an associated address. |
peer | InputPeer | If set, returns only stories posted by this peer. |
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 |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | HASHTAG_INVALID | The specified hashtag is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 182–229 · constructor id changed 1×
| id | layers |
|---|---|
| #6cea116a | 182–191 |
| #d1810907 | 192–229 |