telegramx.js

BusinessConnection

interface

Describes the connection of the bot with a business account.

Declaration

interface BusinessConnection 

Properties

dateproperty#
date: number;

Date the connection was established in Unix time

idproperty#
id: string;

Unique identifier of the business connection

is_enabledproperty#
is_enabled: boolean;

True, if the connection is active

rightsproperty#

Optional. Rights of the business bot

user_chat_id: number;

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.

userproperty#
user: User;

Business account user that created the business connection