BusinessConnection
Describes the connection of the bot with a business account.
fields
| field | type | required | description |
|---|---|---|---|
id | string | required | Unique identifier of the business connection |
user | User | required | Business account user that created the business connection |
user_chat_id | number | required | 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. |
date | number | required | Date the connection was established in Unix time |
rights | BusinessBotRights | optional | Optional. Rights of the business bot |
is_enabled | boolean | required | True, if the connection is active |
import
import type { BusinessConnection } from "@yaebal/types";used by
methods
types
official Bot API docs: https://core.telegram.org/bots/api/#businessconnection