messages.Search#
- class pyrogram.raw.functions.messages.Search#
Search for messages.
- Details:
Layer:
214ID:
29EE847A
- Parameters:
peer (
InputPeer) – 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.q (
str) – Text search requestfilter (
MessagesFilter) – Filter to return only specified message typesmin_date (
int32-bit) – If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returnedmax_date (
int32-bit) – If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returnedoffset_id (
int32-bit) – Only return messages starting from the specified message IDadd_offset (
int32-bit) – Additional offsetlimit (
int32-bit) – Number of results to return, can be 0 to only return the message counter.max_id (
int32-bit) – Maximum message ID to returnmin_id (
int32-bit) – Minimum message ID to returnhash (
int64-bit) – Hashfrom_id (
InputPeer, optional) – Only return messages sent by the specified user IDsaved_peer_id (
InputPeer, optional) – Search within the saved message dialog » with this ID.saved_reaction (List of
Reaction, optional) – You may search for saved messages tagged » with one or more reactions using this flag.top_msg_id (
int32-bit, optional) – Thread ID
- Returns: