MadelineProtoDocs/docs/TD_docs/methods/searchSecretMessages.md

1.2 KiB

title description image
searchSecretMessages Searches for messages in secret chats. Returns result in reverse chronological order https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Method: searchSecretMessages

Back to methods index

YOU CANNOT USE THIS METHOD IN MADELINEPROTO

Searches for messages in secret chats. Returns result in reverse chronological order

Parameters:

Name Type Description Required
chat_id int53 Identifier of a chat to search in. Specify 0 to search in all secret chats Yes
query string Query to search for. If empty, searchChatMessages should be used instead Yes
from_search_id int64 Identifier from the result of previous request, use 0 to get results from the beginning Yes
limit int Maximum number of messages to be returned, can't be greater than 100 Yes
filter SearchMessagesFilter Filter for content of searched messages Optional

Return type: FoundMessages