MadelineProtoDocs/docs/TD_docs/methods/searchMessages.md
2018-04-01 13:24:46 +02:00

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

Back to methods index

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 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

Return type: Messages