ChatMember
public struct ChatMember : Codable, Equatable, FunctionResult
A user with information about joining/leaving a chat
-
User identifier of the chat member
Declaration
Swift
public let userId: Int32
-
Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown
Declaration
Swift
public let inviterUserId: Int32
-
Point in time (Unix timestamp) when the user joined a chat
Declaration
Swift
public let joinedChatDate: Int32
-
Status of the member in the chat
Declaration
Swift
public let status: ChatMemberStatus
-
If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not a chat member
Declaration
Swift
public let botInfo: BotInfo?
-
A user with information about joining/leaving a chat
Declaration
Swift
public init(userId: Int32, inviterUserId: Int32, joinedChatDate: Int32, status: ChatMemberStatus, botInfo: BotInfo?)
Parameters
userId
User identifier of the chat member
inviterUserId
Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown
joinedChatDate
Point in time (Unix timestamp) when the user joined a chat
status
Status of the member in the chat
botInfo
If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not a chat member