Interface BusinessConnection

Describes a connection of the bot with a business account.

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

Properties

@type: "businessConnection"
can_reply?: boolean

True, if the bot can send messages to the connected user; false otherwise.

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.

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.