Filter to return only specified message types
OptionalfromOnly return messages sent by the specified user ID
Hash
Number of results to return , can be 0 to only return the message counter.
If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned
Maximum message ID to return
If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned
Minimum message ID to return
Only return messages starting from the specified message ID
User or chat, histories with which are searched, or (inputPeerEmpty) constructor to search in all private chats and normal groups (not channels) » . Use messages.searchGlobal to search globally in all chats, groups, supergroups and channels.
Text search request
OptionalsavedSearch within the saved message dialog » with this ID.
OptionalsavedYou may search for saved messages tagged » with one or more reactions using this flag.
OptionaltopThread ID
Additional offset