messages.searchGlobal
Search for messages and peers globally
Example
TL schema
Parameters
Name | Type | Description |
flags | Flags, see TL conditional fields | |
folder_id | ||
q | Query | |
filter | Global search filter | |
min_date | If a positive value was specified, the method will return only messages with date bigger than min_date | |
max_date | If a positive value was transferred, the method will return only messages with date smaller than max_date | |
offset_rate | Initially 0, then set to the next_rate parameter of messages.messagesSlice | |
offset_peer | ||
offset_id | ||
limit |
Result
Possible errors
Code | Type | Description |
400 | FOLDER_ID_INVALID | Invalid folder ID |
400 | SEARCH_QUERY_EMPTY | The search query is empty |
Can bots use this methd ?
yes
Related pages
Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.
Incomplete list of messages and auxiliary data.
How to fetch results from large lists of objects.
Last updated