Optional
params: { Search parameters
Optional
filter?: TypeMessagesFilterFilter the results using some filter. (see SearchFilters)
SearchFilters.Empty (i.e. will return all messages)
Optional
limit?: numberLimits the number of messages to be retrieved.
Optional
maxOnly return messages older than this date
Optional
minOnly return messages newer than this date
Optional
offset?: SearchGlobalOffsetOffset data used for pagination
Optional
onlyWhether to only search across broadcast channels
Optional
query?: stringText query string. Use "@"
to search for mentions.
Search for messages globally from all of your chats
Note: Due to Telegram limitations, you can only get up to ~10000 messages