stories.searchPosts
Globally search for stories using a hashtag or a location media area, see here » for more info on the full flow.
Globally search for [stories](https://core.telegram.org/api/stories.md) using a hashtag or a [location media area](https://core.telegram.org/api/stories.md#location-tags), see [here »](https://core.telegram.org/api/stories.md#searching-stories) for more info on the full flow.
| Name | Type | Required | Description |
|---|---|---|---|
hashtag | string | No | Hashtag (without the `#`) |
area | MediaArea | No | A [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) or a [mediaAreaVenue](https://core.telegram.org/constructor/mediaAreaVenue.md). Note [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) areas may be searched only if they have an associated `address`. |
peer | InputPeer | No | If set, returns only stories posted by this peer. |
offset | string | Yes | Offset for [pagination](https://core.telegram.org/api/offsets.md): initially an empty string, then the `next_offset` from the previously returned [stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.md). |
limit | int | Yes | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |
Responses
stories.FoundStories
MTProto RPC
- 400 · HASHTAG_INVALID — The specified hashtag is invalid.