ChatType
public indirect enum ChatType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Describes the type of a chat
-
An ordinary chat with a user
- userId: User identifier
Declaration
Swift
case `private`(userId: Int32)
-
A basic group (i.e., a chat with 0-200 other users)
- basicGroupId: Basic group identifier
Declaration
Swift
case basicGroup(basicGroupId: Int32)
-
A supergroup (i.e. a chat with up to GetOption(“supergroup_max_size”) other users), or channel (with unlimited members)
- supergroupId: Supergroup or channel identifier
- isChannel: True, if the supergroup is a channel
Declaration
Swift
case supergroup(supergroupId: Int32, isChannel: Bool)
-
A secret chat with a user
- secretChatId: Secret chat identifier
- userId: User identifier of the secret chat peer
Declaration
Swift
case secret(secretChatId: Int32, userId: Int32)