1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-14 09:47:20 +01:00
MadelineProto/docs/TD_docs/methods/searchMessages.md

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 CLICK ME string Yes Query to search for
offset_date CLICK ME 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 CLICK ME int53 Yes Chat identifier of the last found message or 0 for the first request
offset_message_id CLICK ME int53 Yes Message identifier of the last found message or 0 for the first request
limit CLICK ME int Yes Maximum number of messages to be returned, at most 100

Return type: Messages