SearchMessages
public struct SearchMessages : Codable, Equatable, TDFunction
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)). -For optimal performance the number of returned messages is chosen by the library
-
Undocumented
Declaration
Swift
public typealias Result = Messages
-
Chat list in which to search messages; pass null to search in all chats regardless of their chat list
Declaration
Swift
public let chatList: ChatList
-
Query to search for
Declaration
Swift
public let query: String
-
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 last message
Declaration
Swift
public let offsetDate: Int32
-
The chat identifier of the last found message, or 0 for the first request
Declaration
Swift
public let offsetChatId: Int53
-
The message identifier of the last found message, or 0 for the first request
Declaration
Swift
public let offsetMessageId: Int53
-
The maximum number of messages to be returned, up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached
Declaration
Swift
public let limit: Int32
-
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)). -For optimal performance the number of returned messages is chosen by the library
Declaration
Parameters
chatList
Chat list in which to search messages; pass null to search in all chats regardless of their chat list
query
Query to search for
offsetDate
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 last message
offsetChatId
The chat identifier of the last found message, or 0 for the first request
offsetMessageId
The message identifier of the last found message, or 0 for the first request
limit
The maximum number of messages to be returned, up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached