Search¶
-
class
pyrogram.raw.functions.messages.
Search
¶ Gets back found messages.
- Details
Layer:
122
ID:
0xc352eec
- Parameters
peer (
InputPeer
) – User or chat, histories with which are searched, or (inputPeerEmpty) constructor for global search.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
32-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
messages.Messages
– Object contains infor on list of messages with auxiliary data.