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