messages.searchGlobal
Search for messages and peers globally
Example
TL schema
Parameters
Name
Type
Description
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
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