SearchChatMessages constructor

SearchChatMessages(
  1. {required int chat_id,
  2. required String query,
  3. MessageSender? sender_id,
  4. required int from_message_id,
  5. required int offset,
  6. required int limit,
  7. SearchMessagesFilter? filter,
  8. required int message_thread_id,
  9. int? extra,
  10. int? clientId}
)

Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query

Returns FoundChatMessages

Implementation

SearchChatMessages