StaticGramBot API

BusinessConnection

Describes the connection of the bot with a business account.

Поля

idString
Unique identifier of the business connection
Business account user that created the business connection
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.
dateInteger
Date the connection was established in Unix time
Rights of the business bot
is_enabledBoolean
True, if the connection is active

Минимальный JSON

JSON
{
  "id": "...",
  "user": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  },
  "user_chat_id": 1,
  "date": 1790000000,
  "is_enabled": true
}

Где используется

Типы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top