SearchSecretMessages
public struct SearchSecretMessages : Codable, Equatable, TDFunction
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance the number of returned messages is chosen by the library
-
Undocumented
Declaration
Swift
public typealias Result = FoundMessages
-
Identifier of the chat in which to search. Specify 0 to search in all secret chats
Declaration
Swift
public let chatId: Int53
-
Query to search for. If empty, searchChatMessages should be used instead
Declaration
Swift
public let query: String
-
The identifier from the result of a previous request, use 0 to get results from the last message
Declaration
Swift
public let fromSearchId: TDInt64
-
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
-
A filter for the content of messages in the search results
Declaration
Swift
public let filter: SearchMessagesFilter
-
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance the number of returned messages is chosen by the library
Declaration
Swift
public init(chatId: Int53, query: String, fromSearchId: TDInt64, limit: Int32, filter: SearchMessagesFilter)
Parameters
chatId
Identifier of the chat in which to search. Specify 0 to search in all secret chats
query
Query to search for. If empty, searchChatMessages should be used instead
fromSearchId
The identifier from the result of a previous request, use 0 to get results from the last message
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
filter
A filter for the content of messages in the search results