mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 19:26:55 +01:00
1.2 KiB
1.2 KiB
title | description |
---|---|
searchMessages | Searches for messages in all chats except secret chats. Returns result in reverse chronological order, i. e. in order of decreasing (date, chat_id, message_id) |
Method: searchMessages
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Searches for messages in all chats except secret chats. Returns result in reverse chronological order, i. e. in order of decreasing (date, chat_id, message_id)
Params:
Name | Type | Required | Description |
---|---|---|---|
query | string | Yes | Query to search for |
offset_date | int | Yes | Date of the message to search from, you can use 0 or any date in the future to get results from the beginning |
offset_chat_id | int53 | Yes | Chat identifier of the last found message or 0 for the first request |
offset_message_id | int53 | Yes | Message identifier of the last found message or 0 for the first request |
limit | int | Yes | Maximum number of messages to be returned, at most 100 |