GetChatMessageCount
public struct GetChatMessageCount : Codable, Equatable, TDFunction
Returns approximate number of messages of the specified type in the chat
-
Undocumented
Declaration
Swift
public typealias Result = Count -
Identifier of the chat in which to count messages
Declaration
Swift
public let chatId: Int53 -
Filter for message content; searchMessagesFilterEmpty is unsupported in this function
Declaration
Swift
public let filter: SearchMessagesFilter -
If true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown
Declaration
Swift
public let returnLocal: Bool -
Returns approximate number of messages of the specified type in the chat
Declaration
Swift
public init(chatId: Int53, filter: SearchMessagesFilter, returnLocal: Bool)Parameters
chatIdIdentifier of the chat in which to count messages
filterFilter for message content; searchMessagesFilterEmpty is unsupported in this function
returnLocalIf true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown
View on GitHub
Install in Dash
GetChatMessageCount Structure Reference