messages.Search#
- class pyrogram.raw.functions.messages.Search#
Search for messages.
- Details:
Layer:
158
ID:
A0FDA762
- 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 request.filter (
MessagesFilter
) – Filter to return only specified message types.min_date (
int
32-bit
) – If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned.max_date (
int
32-bit
) – If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned.offset_id (
int
32-bit
) – Only return messages starting from the specified message ID.add_offset (
int
32-bit
) – Additional offset.limit (
int
32-bit
) – Number of results to return.max_id (
int
32-bit
) – Maximum message ID to return.min_id (
int
32-bit
) – Minimum message ID to return.hash (
int
64-bit
) – Hash.from_id (
InputPeer
, optional) – Only return messages sent by the specified user ID.top_msg_id (
int
32-bit
, optional) – Thread ID.
- Returns: