TDLib v0.0.2 TDLib.Method.SearchMessages View Source

Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). Returns object_ptr.

NameTypeDescription
querystringQuery to search for.
offset_datenumberThe date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the beginning.
offset_chat_idstringThe chat identifier of the last found message, or 0 for the first request.
offset_message_idstringThe message identifier of the last found message, or 0 for the first request.
limitnumberThe maximum number of messages to be returned, up to 100.

More details on telegram’s documentation.