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
Name | Type | Description |
---|---|---|
query | string | Query to search for. |
offset_date | number | The 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_id | string | The chat identifier of the last found message, or 0 for the first request. |
offset_message_id | string | The message identifier of the last found message, or 0 for the first request. |
limit | number | The maximum number of messages to be returned, up to 100. |
More details on telegram’s documentation.