Interface BusinessConnection

Describes a connection of the bot with a business account.

interface BusinessConnection {
    @type: "businessConnection";
    date: number;
    id: string;
    is_enabled?: boolean;
    rights: BusinessBotRights;
    user_chat_id: number;
    user_id: number;
}

Properties

@type: "businessConnection"
date: number

Point in time (Unix timestamp) when the connection was established.

id: string

Unique identifier of the connection.

is_enabled?: boolean

True, if the connection is enabled; false otherwise.

Rights of the bot; may be null if the connection was disabled.

user_chat_id: number

Chat identifier of the private chat with the user.

user_id: number

Identifier of the business user that created the connection.