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
maxDate?: number | DateOnly return messages older than this date
Optional
minDate?: number | DateOnly return messages newer than this date
Optional
offset?: SearchGlobalOffsetOffset data used for pagination
Optional
onlyChannels?: booleanWhether to only search across broadcast channels
Optional
query?: stringText query string. Use "@"
to search for mentions.
Optional
chunkSize?: numberChunk size, which will be passed as limit
parameter
for messages.search
. Usually you shouldn't care about this.
Optional
limit?: numberLimits the number of messages to be retrieved.
Search for messages globally from all of your chats.
Iterable version of searchGlobal
Note: Due to Telegram limitations, you can only get up to ~10000 messages