channels.searchPosts

Globally search for posts from public channels » (including those we aren't a member of) containing a specific hashtag.

 Method schema is available as of layer 180. Switch »

Parameters

Name Type Description
hashtag string The hashtag to search, without the # character.
offset_rate int Initially 0, then set to the next_rate parameter of messages.messagesSlice
offset_peer InputPeer Offsets for pagination, for more info click here
offset_id int Offsets for pagination, for more info click here
limit int Maximum number of results to return, see pagination

Result

messages.Messages

Related pages

messages.messagesSlice

Incomplete list of messages and auxiliary data.

Pagination in the API

How to fetch results from large lists of objects.

Channels, supergroups, gigagroups and basic groups

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.