1.3 KiB
1.3 KiB
title | description | image |
---|---|---|
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) | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
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)
Parameters:
Name | Type | Description | Required |
---|---|---|---|
query | string | Query to search for | Yes |
offset_date | int | Date of the message to search from, you can use 0 or any date in the future to get results from the beginning | Yes |
offset_chat_id | int53 | Chat identifier of the last found message or 0 for the first request | Yes |
offset_message_id | int53 | Message identifier of the last found message or 0 for the first request | Yes |
limit | int | Maximum number of messages to be returned, at most 100 | Yes |