messages.Search
- class pyrogram.raw.functions.messages.Search
Search for messages.
- Details:
Layer:
194
ID:
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 (
int
32-bit
) – If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returnedmax_date (
int
32-bit
) – If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returnedoffset_id (
int
32-bit
) – Only return messages starting from the specified message IDadd_offset (
int
32-bit
) – Additional offsetlimit (
int
32-bit
) – Number of results to returnmax_id (
int
32-bit
) – Maximum message ID to returnmin_id (
int
32-bit
) – Minimum message ID to returnhash (
int
64-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)top_msg_id (
int
32-bit
, optional) – Thread ID
- Returns: