BusinessConnection

@Serializable
data class BusinessConnection(val id: String, val user: User, val userChatId: Long, val date: Long, val canReply: Boolean, val isEnabled: Boolean)

Describes the connection of the bot with a business account.

Api reference

Constructors

Link copied to clipboard
constructor(id: String, user: User, userChatId: Long, date: Long, canReply: Boolean, isEnabled: Boolean)

Properties

Link copied to clipboard

True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours

Link copied to clipboard
val date: Long

Date the connection was established in Unix time

Link copied to clipboard
val id: String

Unique identifier of the business connection

Link copied to clipboard

True, if the connection is active

Link copied to clipboard
val user: User

Business account user that created the business connection

Link copied to clipboard

Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.