Blyk

Розробникам

Документація Bot API та входу через Blyk (OAuth 2.0).

Blyk Bot APIВерсія 2.0.0

Bot API

Бот — це акаунт Blyk із токеном. Створіть його в застосунку: «Ви» → «Розробка» → «Боти» — і викликайте методи по HTTP.

  1. Створіть бота в застосунку
  2. Скопіюйте токен
  3. {BASE}/bot/{TOKEN}/{метод}
Базова адресаhttps://gateway.blyk.chat

HTTP API ботов Blyk: методы, события, вебхуки.

Основы

  • Бот — аккаунт Blyk с токеном вида BBAPITKN001:…. Токен выдаётся при создании бота в приложении: «Вы» → «Разработка» → «Боты». Смена токена в приложении сразу отключает старый.

  • Адрес метода: {BASE}/bot{TOKEN}/{method} или {BASE}/bot/{TOKEN}/{method}. Имя метода — без учёта регистра.

  • Любой метод можно вызвать и GET, и POST. Параметры — в строке запроса, в теле application/json, application/x-www-form-urlencoded или multipart/form-data (последнее — чтобы загрузить файл). В форме и в строке запроса сложные параметры (reply_markup, entities, media…) передаются строкой JSON. Тело JSON — до 1 МБ, multipart — до 50 МБ.

  • Ответ — всегда один и тот же конверт:

    {"ok": true, "result": …}
    {"ok": false, "error_code": 403, "description": "Forbidden: bot not started",
     "parameters": {"reason": "FAIL_BOT_NOT_STARTED"}}
    

    error_code равен HTTP-статусу. description — по-английски, для разработчика бота.

  • Объекты — обычный JSON в snake_case: без служебных полей с именем типа и без обёрток. Пустые и отсутствующие поля не присылаются вовсе.

  • Любой id — строка из цифр ("7349016627290112000"): id в Blyk — снежинки, они не помещаются в float64. На входе число тоже принимается, но в JavaScript оно потеряет точность ещё до отправки. Исключение — update_id: это порядковый номер события бота, он передаётся числом.

  • Время (date, edit_date, until_date…) — секунды Unix.

  • Бот не получает событий о собственных действиях.

Чаты

Chat.type — один из четырёх видов:

type что это
private личный чат; собеседник — user_id, first_name, username
group группа
channel канал (публикуют только администраторы)
server_channel канал сервера; есть server_id и channel_type (text, voice, announcement, stage)

chat_id в методах — любое из:

  • Chat.id из события (id переписки Blyk);
  • id человека — личный чат с ним (поэтому ответ на message.from.id тоже работает);
  • @тег — человек или публичная группа/канал.

Сообщение из канала сервера несёт server_id и в chat, и в самом Message.

Где бывает бот

  • Личный чат. Действует правило /start (ниже).
  • Группа. Бота добавляет любой администратор группы — даже без права «добавлять участников»; рядовой участник не может (FAIL_BOT_NEEDS_ADMIN). В группе бот получает все сообщения (режима приватности нет). Удалять чужие сообщения, закреплять, выгонять — если он администратор с этим правом, как и человек. Своё правит и удаляет всегда.
  • Канал. Бот, добавленный в канал, сразу становится администратором с правами публиковать, править и удалять публикации — но не больше, чем у того, кто его добавил. sendMessage в канал — это публикация: автор скрыт, и подписчики видят сам канал (у события — sender_chat вместо from). Публикации приходят как channel_post.
  • Сервер. Бота добавляет тот, у кого есть право «Управлять сервером» (настройки сервера → «Боты»), убирает — тот, кто может выгонять. Бот — обычный участник: его права задают роли, и он получает сообщения только тех каналов, которые его роли позволяют видеть. Удалять чужие сообщения — с правом «Управлять сообщениями».
  • О том, что бота добавили, убрали или изменили его права, он узнаёт событием my_chat_member (группа, канал) или my_server_member (сервер).

Запуск бота пользователем: /start и /stop

  • Для каждой пары «бот — пользователь» хранится состояние «запущен». По умолчанию бот не запущен.
  • Пользователь запускает бота сообщением /start (допускается хвост: /start ref42, и тег бота: /start@tagbot) и останавливает сообщением /stop. Пока бот не запущен, в приложении вместо поля ввода стоит кнопка «Начать», которая отправляет /start.
  • Оба сообщения приходят боту обычным message. К моменту получения состояние уже изменено.
  • Пока бот не запущен, он не может писать этому пользователю в личный чат, в том числе отвечать ему: 403, reason: FAIL_BOT_NOT_STARTED. Создать новый личный чат с таким пользователем бот тоже не может.
  • В группах, каналах и на серверах это ограничение не действует.

Получение событий

Два способа: long polling (getUpdates) или вебхук (setWebhook). Пока стоит вебхук, getUpdates отвечает 409.

offset = 0
loop:
  r = GET /bot{TOKEN}/getUpdates?offset={offset}&timeout=30
  for u in r.result:
    handle(u)
    offset = u.update_id + 1
  • В каждом Update ровно одно поле кроме update_id: message, edited_message, channel_post, edited_channel_post, callback_query, message_reaction, deleted_message, chat_cleared, my_chat_member или my_server_member.
  • allowed_updates (в getUpdates или setWebhook) — какие из них получать; запоминается до следующего раза. Пустой список — все. Событие вида, которого бот не просил, не сохраняется.
  • Номера событий растут; у каждого бота нумерация своя (1, 2, 3…).
  • Незабранное событие хранится 24 часа.
  • Одновременно на бота может висеть только один getUpdates; второй получает 409. При смене токена висящий запрос завершается с 401.

Вебхук

  • Адрес — только https и только публичный (адреса локальной сети и внутренние не принимаются).
  • События уходят POST-запросом по одному, строго по порядку; тело — тот же Update, что вернул бы getUpdates.
  • Ответ 2xx — событие доставлено и убрано из очереди. Иначе — повтор с растущей паузой (до минуты); последняя ошибка видна в getWebhookInfo.
  • Если задан secret_token, он приходит в заголовке X-Blyk-Bot-Api-Secret-Token.
  • Тело ответа вебхука не читается: вызвать метод ответом на вебхук нельзя.

Оформление текста

parse_mode: HTML или MarkdownV2 (Markdown читается тем же разбором), либо явные entities. Виды отрезков: bold, italic, underline, strikethrough, spoiler, code, pre, blockquote, expandable_blockquote, text_link, custom_emoji. offset и length — в единицах UTF-16. Виды, которых в Blyk нет (mention, url, hashtag…), на входе молча пропускаются: их приложение находит в тексте само.

HTML: <b>, <strong>, <i>, <em>, <u>, <ins>, <s>, <strike>, <del>, <tg-spoiler>, <span class="tg-spoiler">, <code>, <pre>, <pre><code class="language-…">, <a href="…">, <blockquote [expandable]>, <tg-emoji emoji-id="…">, <br>; сущности &lt; &gt; &amp; &quot;.

MarkdownV2: *жирный*, _курсив_, __подчёркнутый__, ~зачёркнутый~, ||спойлер||, `код`, блок в тройных обратных кавычках (с языком в первой строке), [текст](адрес), >цитата; \\ перед служебным символом — сам символ.

Файлы

Файл в sendPhoto, sendDocument и других — одно из трёх:

  • file_id — файл, который уже есть в Blyk (из полученного сообщения или прошлой отправки): не скачивается заново;
  • адрес http(s) — Blyk скачает его сам, до 20 МБ;
  • загрузка multipart/form-data полем с тем же именем (photo, document…) или attach://<поле>, до 50 МБ.

У файлов в сообщениях есть url — подписанный адрес для скачивания, он живёт сутки; getFile выдаёт свежий.

Кнопки

reply_markup — {"inline_keyboard": [[{"text": "Да", "callback_data": "yes"}]]}: до 6 рядов, в ряду 1–4 кнопки, text 1–64 символа, callback_data 1–64 байта. Нажатие приходит событием callback_query с тем data, которое положил бот. Поддерживаются только callback-кнопки.

Права на сервере

Role.permissions и ServerMember.permissions — маска битов:

бит значение право
0 1 видеть каналы
1 2 отправлять сообщения
2 4 управлять сообщениями (удалять и закреплять чужие)
3 8 управлять каналами
4 16 управлять ролями
5 32 управлять сервером (в том числе добавлять ботов)
6 64 выгонять участников
7 128 создавать приглашения
8 256 подключаться к голосовым
9 512 говорить в голосовых
10 1024 упоминать всех
11 2048 администратор (всё)

Ошибки

HTTP значение примеры parameters.reason
400 неверный запрос, нет такого чата или сообщения FAIL_MESSAGE_TOO_LONG, FAIL_MESSAGE_EMPTY, FAIL_NO_SUCH_MESSAGE, FAIL_BUTTONS_INVALID
401 неизвестный или сменённый токен —
403 нет права FAIL_BOT_NOT_STARTED, FAIL_NOT_A_MEMBER, FAIL_MISSING_PERMISSION, FAIL_CHANNEL_READ_ONLY, FAIL_SLOW_MODE
404 нет такого метода —
409 второй одновременный getUpdates или стоит вебхук —
500 не удалось прочитать очередь или сохранить настройку —
502 сбой на стороне Blyk —
504 Blyk не ответил вовремя —

parameters.reason — причина отказа из общего перечисления Blyk (FAIL_*), parameters.vars — её подробности, parameters.retry_after — через сколько секунд можно повторить (медленный режим). Ошибки проверки самого запроса приходят без reason, с пояснением в description. На 500, 502 и 504 запрос можно повторить.

Что не поддерживается

  • Inline-режим, игры, платежи через Bot API, стикерпаки, истории, бизнес-аккаунты.
  • Кнопки url, login_url, pay, web_app и прочие, кроме callback_data.
  • ReplyKeyboardMarkup: у бота одно меню у поля ввода — setMyMenu.
  • answerCallbackQuery принимается и отвечает true, но всплывающего уведомления приложение пока не показывает.
  • message_reaction несёт только изменившуюся реакцию, а не весь набор реакций человека.
  • sendMediaGroup возвращает один Message: альбом в Blyk — одно сообщение.
  • forwardMessages возвращает id только последнего пересланного.
  • Вызов метода ответом на вебхук.
  • Режим приватности в группах: бот видит все сообщения.
  • chat_member (события о других участниках), chat_join_request, poll_answer.
  • setMyCommands: scope и language_code не читаются — список один на бота.
Методи

Обновления

getUpdates и вебхуки.

post/bot{token}/getUpdates

Получить события

Long polling. Есть события — ответ сразу; нет — запрос держится до timeout и возвращает пустой массив. Все события с номером меньше offset считаются забранными и удаляются. Пока стоит вебхук — 409; второй одновременный запрос — 409; смена токена во время ожидания — 401.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

offsetintegerнеобов’язковий

Номер первого нужного события. Отрицательный — последние |offset| событий, остальное забыто.

limitintegerнеобов’язковий

1–100, по умолчанию 100. Вне пределов — 400.

timeoutintegerнеобов’язковий

Секунды ожидания, 0–60 (больше — 60), по умолчанию 0.

allowed_updatesstring[]необов’язковий

Какие виды событий получать; запоминается. Пустой список — все.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getUpdates' \
  -H 'Content-Type: application/json' \
  -d '{
  "offset": 0,
  "limit": 0,
  "timeout": 0,
  "allowed_updates": [
    "string"
  ]
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "update_id": 0,
      "message": {
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_user_name": "string",
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          }
        },
        "reply_to_message": {
          "message_id": "7349016627290112000",
          "from": null,
          "sender_chat": null,
          "chat": null,
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": null,
          "forward_origin": null,
          "reply_to_message": null,
          "quote": null,
          "text": null,
          "entities": null,
          "caption": null,
          "caption_entities": null,
          "has_media_spoiler": null,
          "photo": null,
          "video": null,
          "animation": null,
          "video_note": null,
          "voice": null,
          "audio": null,
          "document": null,
          "sticker": null,
          "media_group": null,
          "poll": null,
          "location": null,
          "venue": null,
          "contact": null,
          "dice": null,
          "views": null,
          "is_pinned": null,
          "reply_markup": null
        },
        "quote": {
          "text": "string",
          "position": 0
        },
        "text": "string",
        "entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "caption": "string",
        "caption_entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "has_media_spoiler": true,
        "photo": [
          {
            "file_id": null,
            "width": null,
            "height": null,
            "url": null
          }
        ],
        "video": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "animation": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "video_note": {
          "file_id": "string",
          "length": 0,
          "duration": 0,
          "url": "string"
        },
        "voice": {
          "file_id": "string",
          "duration": 0,
          "url": "string"
        },
        "audio": {
          "file_id": "string",
          "duration": 0,
          "title": "string",
          "performer": "string",
          "file_name": "string",
          "url": "string"
        },
        "document": {
          "file_id": "string",
          "file_name": "string",
          "file_size_label": "string",
          "url": "string"
        },
        "sticker": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "emoji": "string",
          "url": "string"
        },
        "media_group": [
          {
            "type": "photo",
            "file_id": null,
            "width": null,
            "height": null,
            "duration": null,
            "file_name": null,
            "url": null
          }
        ],
        "poll": {
          "question": "string",
          "options": [
            null
          ],
          "total_voter_count": 0,
          "is_closed": true,
          "is_anonymous": true,
          "type": "regular",
          "allows_multiple_answers": true,
          "explanation": "string",
          "close_date": 1760120000
        },
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "venue": {
          "location": {
            "latitude": null,
            "longitude": null,
            "horizontal_accuracy": null,
            "live_period": null,
            "heading": null
          },
          "title": "string",
          "address": "string"
        },
        "contact": {
          "first_name": "string",
          "username": "string",
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": "string",
          "value": 0
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": [
            null
          ]
        }
      },
      "edited_message": {
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_user_name": "string",
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          }
        },
        "reply_to_message": {
          "message_id": "7349016627290112000",
          "from": null,
          "sender_chat": null,
          "chat": null,
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": null,
          "forward_origin": null,
          "reply_to_message": null,
          "quote": null,
          "text": null,
          "entities": null,
          "caption": null,
          "caption_entities": null,
          "has_media_spoiler": null,
          "photo": null,
          "video": null,
          "animation": null,
          "video_note": null,
          "voice": null,
          "audio": null,
          "document": null,
          "sticker": null,
          "media_group": null,
          "poll": null,
          "location": null,
          "venue": null,
          "contact": null,
          "dice": null,
          "views": null,
          "is_pinned": null,
          "reply_markup": null
        },
        "quote": {
          "text": "string",
          "position": 0
        },
        "text": "string",
        "entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "caption": "string",
        "caption_entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "has_media_spoiler": true,
        "photo": [
          {
            "file_id": null,
            "width": null,
            "height": null,
            "url": null
          }
        ],
        "video": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "animation": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "video_note": {
          "file_id": "string",
          "length": 0,
          "duration": 0,
          "url": "string"
        },
        "voice": {
          "file_id": "string",
          "duration": 0,
          "url": "string"
        },
        "audio": {
          "file_id": "string",
          "duration": 0,
          "title": "string",
          "performer": "string",
          "file_name": "string",
          "url": "string"
        },
        "document": {
          "file_id": "string",
          "file_name": "string",
          "file_size_label": "string",
          "url": "string"
        },
        "sticker": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "emoji": "string",
          "url": "string"
        },
        "media_group": [
          {
            "type": "photo",
            "file_id": null,
            "width": null,
            "height": null,
            "duration": null,
            "file_name": null,
            "url": null
          }
        ],
        "poll": {
          "question": "string",
          "options": [
            null
          ],
          "total_voter_count": 0,
          "is_closed": true,
          "is_anonymous": true,
          "type": "regular",
          "allows_multiple_answers": true,
          "explanation": "string",
          "close_date": 1760120000
        },
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "venue": {
          "location": {
            "latitude": null,
            "longitude": null,
            "horizontal_accuracy": null,
            "live_period": null,
            "heading": null
          },
          "title": "string",
          "address": "string"
        },
        "contact": {
          "first_name": "string",
          "username": "string",
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": "string",
          "value": 0
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": [
            null
          ]
        }
      },
      "channel_post": {
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_user_name": "string",
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          }
        },
        "reply_to_message": {
          "message_id": "7349016627290112000",
          "from": null,
          "sender_chat": null,
          "chat": null,
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": null,
          "forward_origin": null,
          "reply_to_message": null,
          "quote": null,
          "text": null,
          "entities": null,
          "caption": null,
          "caption_entities": null,
          "has_media_spoiler": null,
          "photo": null,
          "video": null,
          "animation": null,
          "video_note": null,
          "voice": null,
          "audio": null,
          "document": null,
          "sticker": null,
          "media_group": null,
          "poll": null,
          "location": null,
          "venue": null,
          "contact": null,
          "dice": null,
          "views": null,
          "is_pinned": null,
          "reply_markup": null
        },
        "quote": {
          "text": "string",
          "position": 0
        },
        "text": "string",
        "entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "caption": "string",
        "caption_entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "has_media_spoiler": true,
        "photo": [
          {
            "file_id": null,
            "width": null,
            "height": null,
            "url": null
          }
        ],
        "video": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "animation": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "video_note": {
          "file_id": "string",
          "length": 0,
          "duration": 0,
          "url": "string"
        },
        "voice": {
          "file_id": "string",
          "duration": 0,
          "url": "string"
        },
        "audio": {
          "file_id": "string",
          "duration": 0,
          "title": "string",
          "performer": "string",
          "file_name": "string",
          "url": "string"
        },
        "document": {
          "file_id": "string",
          "file_name": "string",
          "file_size_label": "string",
          "url": "string"
        },
        "sticker": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "emoji": "string",
          "url": "string"
        },
        "media_group": [
          {
            "type": "photo",
            "file_id": null,
            "width": null,
            "height": null,
            "duration": null,
            "file_name": null,
            "url": null
          }
        ],
        "poll": {
          "question": "string",
          "options": [
            null
          ],
          "total_voter_count": 0,
          "is_closed": true,
          "is_anonymous": true,
          "type": "regular",
          "allows_multiple_answers": true,
          "explanation": "string",
          "close_date": 1760120000
        },
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "venue": {
          "location": {
            "latitude": null,
            "longitude": null,
            "horizontal_accuracy": null,
            "live_period": null,
            "heading": null
          },
          "title": "string",
          "address": "string"
        },
        "contact": {
          "first_name": "string",
          "username": "string",
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": "string",
          "value": 0
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": [
            null
          ]
        }
      },
      "edited_channel_post": {
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_user_name": "string",
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          }
        },
        "reply_to_message": {
          "message_id": "7349016627290112000",
          "from": null,
          "sender_chat": null,
          "chat": null,
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": null,
          "forward_origin": null,
          "reply_to_message": null,
          "quote": null,
          "text": null,
          "entities": null,
          "caption": null,
          "caption_entities": null,
          "has_media_spoiler": null,
          "photo": null,
          "video": null,
          "animation": null,
          "video_note": null,
          "voice": null,
          "audio": null,
          "document": null,
          "sticker": null,
          "media_group": null,
          "poll": null,
          "location": null,
          "venue": null,
          "contact": null,
          "dice": null,
          "views": null,
          "is_pinned": null,
          "reply_markup": null
        },
        "quote": {
          "text": "string",
          "position": 0
        },
        "text": "string",
        "entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "caption": "string",
        "caption_entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "has_media_spoiler": true,
        "photo": [
          {
            "file_id": null,
            "width": null,
            "height": null,
            "url": null
          }
        ],
        "video": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "animation": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "video_note": {
          "file_id": "string",
          "length": 0,
          "duration": 0,
          "url": "string"
        },
        "voice": {
          "file_id": "string",
          "duration": 0,
          "url": "string"
        },
        "audio": {
          "file_id": "string",
          "duration": 0,
          "title": "string",
          "performer": "string",
          "file_name": "string",
          "url": "string"
        },
        "document": {
          "file_id": "string",
          "file_name": "string",
          "file_size_label": "string",
          "url": "string"
        },
        "sticker": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "emoji": "string",
          "url": "string"
        },
        "media_group": [
          {
            "type": "photo",
            "file_id": null,
            "width": null,
            "height": null,
            "duration": null,
            "file_name": null,
            "url": null
          }
        ],
        "poll": {
          "question": "string",
          "options": [
            null
          ],
          "total_voter_count": 0,
          "is_closed": true,
          "is_anonymous": true,
          "type": "regular",
          "allows_multiple_answers": true,
          "explanation": "string",
          "close_date": 1760120000
        },
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "venue": {
          "location": {
            "latitude": null,
            "longitude": null,
            "horizontal_accuracy": null,
            "live_period": null,
            "heading": null
          },
          "title": "string",
          "address": "string"
        },
        "contact": {
          "first_name": "string",
          "username": "string",
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": "string",
          "value": 0
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": [
            null
          ]
        }
      },
      "callback_query": {
        "id": "string",
        "from": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "message": {
          "message_id": "7349016627290112000",
          "from": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          },
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": "string",
            "username": "string",
            "first_name": "string",
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": "string",
            "position": 0,
            "category_id": "7349016627290112000"
          },
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": "string",
          "forward_origin": {
            "type": "user",
            "sender_user": {
              "id": "7349016627290112000",
              "is_bot": null,
              "first_name": null,
              "username": null,
              "avatar_url": null,
              "is_deleted": null,
              "can_join_groups": null,
              "can_read_all_group_messages": null,
              "can_join_servers": null
            },
            "sender_user_name": "string",
            "chat": {
              "id": "7349016627290112000",
              "type": "private",
              "title": null,
              "username": null,
              "first_name": null,
              "user_id": "7349016627290112000",
              "server_id": "7349016627290112000",
              "channel_type": "text",
              "topic": null,
              "position": null,
              "category_id": "7349016627290112000"
            }
          },
          "reply_to_message": {
            "message_id": "7349016627290112000",
            "from": null,
            "sender_chat": null,
            "chat": null,
            "server_id": "7349016627290112000",
            "date": 1760120000,
            "edit_date": 1760120000,
            "author_signature": null,
            "forward_origin": null,
            "reply_to_message": null,
            "quote": null,
            "text": null,
            "entities": null,
            "caption": null,
            "caption_entities": null,
            "has_media_spoiler": null,
            "photo": null,
            "video": null,
            "animation": null,
            "video_note": null,
            "voice": null,
            "audio": null,
            "document": null,
            "sticker": null,
            "media_group": null,
            "poll": null,
            "location": null,
            "venue": null,
            "contact": null,
            "dice": null,
            "views": null,
            "is_pinned": null,
            "reply_markup": null
          },
          "quote": {
            "text": "string",
            "position": 0
          },
          "text": "string",
          "entities": [
            {
              "type": "bold",
              "offset": null,
              "length": null,
              "url": null,
              "language": null,
              "custom_emoji_id": "7349016627290112000"
            }
          ],
          "caption": "string",
          "caption_entities": [
            {
              "type": "bold",
              "offset": null,
              "length": null,
              "url": null,
              "language": null,
              "custom_emoji_id": "7349016627290112000"
            }
          ],
          "has_media_spoiler": true,
          "photo": [
            {
              "file_id": null,
              "width": null,
              "height": null,
              "url": null
            }
          ],
          "video": {
            "file_id": "string",
            "width": 0,
            "height": 0,
            "duration": 0,
            "file_name": "string",
            "url": "string"
          },
          "animation": {
            "file_id": "string",
            "width": 0,
            "height": 0,
            "duration": 0,
            "file_name": "string",
            "url": "string"
          },
          "video_note": {
            "file_id": "string",
            "length": 0,
            "duration": 0,
            "url": "string"
          },
          "voice": {
            "file_id": "string",
            "duration": 0,
            "url": "string"
          },
          "audio": {
            "file_id": "string",
            "duration": 0,
            "title": "string",
            "performer": "string",
            "file_name": "string",
            "url": "string"
          },
          "document": {
            "file_id": "string",
            "file_name": "string",
            "file_size_label": "string",
            "url": "string"
          },
          "sticker": {
            "file_id": "string",
            "width": 0,
            "height": 0,
            "emoji": "string",
            "url": "string"
          },
          "media_group": [
            {
              "type": "photo",
              "file_id": null,
              "width": null,
              "height": null,
              "duration": null,
              "file_name": null,
              "url": null
            }
          ],
          "poll": {
            "question": "string",
            "options": [
              null
            ],
            "total_voter_count": 0,
            "is_closed": true,
            "is_anonymous": true,
            "type": "regular",
            "allows_multiple_answers": true,
            "explanation": "string",
            "close_date": 1760120000
          },
          "location": {
            "latitude": 0,
            "longitude": 0,
            "horizontal_accuracy": 0,
            "live_period": 0,
            "heading": 0
          },
          "venue": {
            "location": {
              "latitude": null,
              "longitude": null,
              "horizontal_accuracy": null,
              "live_period": null,
              "heading": null
            },
            "title": "string",
            "address": "string"
          },
          "contact": {
            "first_name": "string",
            "username": "string",
            "user_id": "7349016627290112000"
          },
          "dice": {
            "emoji": "string",
            "value": 0
          },
          "views": 0,
          "is_pinned": true,
          "reply_markup": {
            "inline_keyboard": [
              null
            ]
          }
        },
        "data": "string",
        "button_text": "string",
        "button_row": 0,
        "button_column": 0,
        "chat_instance": "string"
      },
      "message_reaction": {
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "message_id": "7349016627290112000",
        "user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "date": 1760120000,
        "old_reaction": [
          {
            "type": "emoji",
            "emoji": "string"
          }
        ],
        "new_reaction": [
          {
            "type": "emoji",
            "emoji": "string"
          }
        ]
      },
      "deleted_message": {
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "date": 1760120000
      },
      "chat_cleared": {
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "from": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "date": 1760120000
      },
      "my_chat_member": {
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "from": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "date": 1760120000,
        "old_chat_member": {
          "status": "creator",
          "user": {
            "id": "7349016627290112000",
            "is_bot": true,
            "first_name": "string",
            "username": "string",
            "avatar_url": "string",
            "is_deleted": true,
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "can_join_servers": true
          },
          "custom_title": "string",
          "can_change_info": true,
          "can_delete_messages": true,
          "can_restrict_members": true,
          "can_invite_users": true,
          "can_pin_messages": true,
          "can_manage_video_chats": true,
          "can_promote_members": true,
          "can_post_messages": true,
          "can_edit_messages": true,
          "permissions": {
            "can_send_messages": true,
            "can_send_photos": true,
            "can_send_videos": true,
            "can_send_documents": true,
            "can_send_voice_notes": true,
            "can_send_video_notes": true,
            "can_send_other_messages": true,
            "can_send_polls": true,
            "can_add_reactions": true,
            "can_invite_users": true,
            "can_pin_messages": true
          },
          "until_date": 1760120000,
          "joined_date": 1760120000
        },
        "new_chat_member": {
          "status": "creator",
          "user": {
            "id": "7349016627290112000",
            "is_bot": true,
            "first_name": "string",
            "username": "string",
            "avatar_url": "string",
            "is_deleted": true,
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "can_join_servers": true
          },
          "custom_title": "string",
          "can_change_info": true,
          "can_delete_messages": true,
          "can_restrict_members": true,
          "can_invite_users": true,
          "can_pin_messages": true,
          "can_manage_video_chats": true,
          "can_promote_members": true,
          "can_post_messages": true,
          "can_edit_messages": true,
          "permissions": {
            "can_send_messages": true,
            "can_send_photos": true,
            "can_send_videos": true,
            "can_send_documents": true,
            "can_send_voice_notes": true,
            "can_send_video_notes": true,
            "can_send_other_messages": true,
            "can_send_polls": true,
            "can_add_reactions": true,
            "can_invite_users": true,
            "can_pin_messages": true
          },
          "until_date": 1760120000,
          "joined_date": 1760120000
        }
      },
      "my_server_member": {
        "server": {
          "id": "7349016627290112000",
          "name": "string",
          "username": "string",
          "description": "string",
          "avatar_url": "string",
          "member_count": 0,
          "owner_id": "7349016627290112000",
          "is_public": true
        },
        "from": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "date": 1760120000,
        "old_server_member": {
          "status": "creator",
          "user": {
            "id": "7349016627290112000",
            "is_bot": true,
            "first_name": "string",
            "username": "string",
            "avatar_url": "string",
            "is_deleted": true,
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "can_join_servers": true
          },
          "nickname": "string",
          "roles": [
            "7349016627290112000"
          ],
          "permissions": 0,
          "joined_date": 1760120000
        },
        "new_server_member": {
          "status": "creator",
          "user": {
            "id": "7349016627290112000",
            "is_bot": true,
            "first_name": "string",
            "username": "string",
            "avatar_url": "string",
            "is_deleted": true,
            "can_join_groups": true,
            "can_read_all_group_messages": true,
            "can_join_servers": true
          },
          "nickname": "string",
          "roles": [
            "7349016627290112000"
          ],
          "permissions": 0,
          "joined_date": 1760120000
        }
      }
    }
  ]
}
post/bot{token}/setWebhook

Поставить вебхук

События пойдут POST-запросами на url (см. «Вебхук» во введении). Пустой url — то же, что deleteWebhook. Висящий getUpdates обрывается.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

urlstringобов’язковий

https-адрес во внешнем интернете.

secret_tokenstringнеобов’язковий

1–256 символов A-Z a-z 0-9 _ -; придёт в X-Blyk-Bot-Api-Secret-Token.

max_connectionsintegerнеобов’язковий

1–100, по умолчанию 40. Запоминается; доставка всё равно идёт по одному событию по порядку.

allowed_updatesstring[]необов’язковий

Как в getUpdates.

drop_pending_updatesbooleanнеобов’язковий

Забыть всё, что ждёт.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setWebhook' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "string",
  "secret_token": "string",
  "max_connections": 0,
  "allowed_updates": [
    "string"
  ],
  "drop_pending_updates": true
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/deleteWebhook

Убрать вебхук

Дальше события — через getUpdates.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

drop_pending_updatesbooleanнеобов’язковий

Забыть всё, что ждёт.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteWebhook' \
  -H 'Content-Type: application/json' \
  -d '{
  "drop_pending_updates": true
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/getWebhookInfo

Состояние вебхука

Адрес, сколько событий ждёт, последняя ошибка доставки.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getWebhookInfo'
Відповідь
{
  "ok": true,
  "result": {
    "url": "string",
    "has_custom_certificate": true,
    "pending_update_count": 0,
    "last_error_date": 1760120000,
    "last_error_message": "string",
    "max_connections": 0,
    "allowed_updates": [
      "string"
    ]
  }
}
Методи

О боте

getMe, команды и меню.

post/bot{token}/getMe

О себе

Бот как User; can_join_groups, can_read_all_group_messages, can_join_servers — всегда true.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMe'
Відповідь
{
  "ok": true,
  "result": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  }
}
post/bot{token}/setMyCommands

Задать команды

Список целиком заменяет прежний; не больше 100. Приложение подсказывает команды при вводе «/». scope и language_code не читаются.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

commandsBotCommand[]обов’язковий

Команды.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setMyCommands' \
  -H 'Content-Type: application/json' \
  -d '{
  "commands": [
    {
      "command": "string",
      "description": "string"
    }
  ]
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/getMyCommands

Команды

Текущий список.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyCommands'
Відповідь
{
  "ok": true,
  "result": [
    {
      "command": "string",
      "description": "string"
    }
  ]
}
post/bot{token}/deleteMyCommands

Удалить команды

Список становится пустым.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMyCommands'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/setMyMenu

Задать меню

Кнопка «Меню» у поля ввода в чате с ботом: строка отправляет «/команду» обычным сообщением. Не больше 20 строк; список заменяет прежний. Нет меню — приложение показывает команды. Замена ReplyKeyboardMarkup.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

menuMenuButton[]обов’язковий

Строки меню.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setMyMenu' \
  -H 'Content-Type: application/json' \
  -d '{
  "menu": [
    {
      "text": "string",
      "command": "string"
    }
  ]
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/getMyMenu

Меню

Текущее меню.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyMenu'
Відповідь
{
  "ok": true,
  "result": [
    {
      "text": "string",
      "command": "string"
    }
  ]
}
post/bot{token}/deleteMyMenu

Удалить меню

Меню становится пустым.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMyMenu'
Відповідь
{
  "ok": true,
  "result": true
}
Методи

Отправка

Отправка сообщений всех видов. Любой метод — GET или POST; здесь показан POST с JSON.

post/bot{token}/sendMessage

Отправить текст

В канал — публикация (бот должен быть администратором с правом публиковать). В личный чат — только если человек запустил бота.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
textstringобов’язковий

Текст, не пустой; предел длины — как в приложении (FAIL_MESSAGE_TOO_LONG).

parse_modestringнеобов’язковий

HTML или MarkdownV2.

entitiesMessageEntity[]необов’язковий

Оформление вместо parse_mode.

link_preview_optionsobjectнеобов’язковий

{"is_disabled": true} — без превью ссылки.

disable_web_page_previewbooleanнеобов’язковий

То же короче.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "text": "string",
  "parse_mode": "string",
  "entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "link_preview_options": {},
  "disable_web_page_preview": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendPhoto

Отправить снимок

Размеры JPEG/PNG/GIF определяются сами.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
photostringобов’язковий

file_id, адрес или загрузка.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendPhoto' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "photo": "string",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendVideo

Отправить видео

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
videostringобов’язковий

file_id, адрес или загрузка.

widthintegerнеобов’язковий

Ширина.

heightintegerнеобов’язковий

Высота.

durationintegerнеобов’язковий

Секунды.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendVideo' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "video": "string",
  "width": 0,
  "height": 0,
  "duration": 0,
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendAnimation

Отправить анимацию

Видео без звука, которое крутится по кругу (GIF).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
animationstringобов’язковий

file_id, адрес или загрузка.

widthintegerнеобов’язковий

Ширина.

heightintegerнеобов’язковий

Высота.

durationintegerнеобов’язковий

Секунды.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendAnimation' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "animation": "string",
  "width": 0,
  "height": 0,
  "duration": 0,
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendAudio

Отправить музыку

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
audiostringобов’язковий

file_id, адрес или загрузка.

durationintegerнеобов’язковий

Секунды.

titlestringнеобов’язковий

Название трека.

performerstringнеобов’язковий

Исполнитель.

file_namestringнеобов’язковий

Имя файла.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendAudio' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "audio": "string",
  "duration": 0,
  "title": "string",
  "performer": "string",
  "file_name": "string",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendDocument

Отправить файл

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
documentstringобов’язковий

file_id, адрес или загрузка.

file_namestringнеобов’язковий

Имя файла.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendDocument' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "document": "string",
  "file_name": "string",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendVoice

Отправить голосовое

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
voicestringобов’язковий

file_id, адрес или загрузка.

durationintegerнеобов’язковий

Секунды.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendVoice' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "voice": "string",
  "duration": 0,
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendVideoNote

Отправить кружок

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
video_notestringобов’язковий

file_id, адрес или загрузка.

lengthintegerнеобов’язковий

Сторона, пиксели.

durationintegerнеобов’язковий

Секунды.

captionstringнеобов’язковий

Подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление подписи вместо parse_mode.

has_spoilerbooleanнеобов’язковий

Скрыть под спойлером.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendVideoNote' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "video_note": "string",
  "length": 0,
  "duration": 0,
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_spoiler": true,
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendSticker

Отправить стикер

Стикер из набора по его id — sticker.file_id из полученного сообщения.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
stickerstringобов’язковий

Id стикера.

/^[0-9]+$/
reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendSticker' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "sticker": "7349016627290112000",
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendMediaGroup

Отправить альбом

До 10 вложений одним сообщением. Подпись альбома — первая непустая. Ответ — массив из одного Message: в Blyk альбом — одно сообщение.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
mediaInputMedia[]обов’язковий

1–10 элементов.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendMediaGroup' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "media": [
    {
      "type": "photo",
      "media": "string",
      "caption": "string",
      "parse_mode": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "width": 0,
      "height": 0,
      "duration": 0,
      "title": "string",
      "performer": "string",
      "has_spoiler": true
    }
  ],
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_user_name": "string",
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          }
        },
        "reply_to_message": {
          "message_id": "7349016627290112000",
          "from": null,
          "sender_chat": null,
          "chat": null,
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": null,
          "forward_origin": null,
          "reply_to_message": null,
          "quote": null,
          "text": null,
          "entities": null,
          "caption": null,
          "caption_entities": null,
          "has_media_spoiler": null,
          "photo": null,
          "video": null,
          "animation": null,
          "video_note": null,
          "voice": null,
          "audio": null,
          "document": null,
          "sticker": null,
          "media_group": null,
          "poll": null,
          "location": null,
          "venue": null,
          "contact": null,
          "dice": null,
          "views": null,
          "is_pinned": null,
          "reply_markup": null
        },
        "quote": {
          "text": "string",
          "position": 0
        },
        "text": "string",
        "entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "caption": "string",
        "caption_entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "has_media_spoiler": true,
        "photo": [
          {
            "file_id": null,
            "width": null,
            "height": null,
            "url": null
          }
        ],
        "video": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "animation": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "video_note": {
          "file_id": "string",
          "length": 0,
          "duration": 0,
          "url": "string"
        },
        "voice": {
          "file_id": "string",
          "duration": 0,
          "url": "string"
        },
        "audio": {
          "file_id": "string",
          "duration": 0,
          "title": "string",
          "performer": "string",
          "file_name": "string",
          "url": "string"
        },
        "document": {
          "file_id": "string",
          "file_name": "string",
          "file_size_label": "string",
          "url": "string"
        },
        "sticker": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "emoji": "string",
          "url": "string"
        },
        "media_group": [
          {
            "type": "photo",
            "file_id": null,
            "width": null,
            "height": null,
            "duration": null,
            "file_name": null,
            "url": null
          }
        ],
        "poll": {
          "question": "string",
          "options": [
            null
          ],
          "total_voter_count": 0,
          "is_closed": true,
          "is_anonymous": true,
          "type": "regular",
          "allows_multiple_answers": true,
          "explanation": "string",
          "close_date": 1760120000
        },
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "venue": {
          "location": {
            "latitude": null,
            "longitude": null,
            "horizontal_accuracy": null,
            "live_period": null,
            "heading": null
          },
          "title": "string",
          "address": "string"
        },
        "contact": {
          "first_name": "string",
          "username": "string",
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": "string",
          "value": 0
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": [
            null
          ]
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": "string",
            "text": "string",
            "voter_count": 0
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            {
              "text": null,
              "callback_data": null
            }
          ]
        ]
      }
    }
  ]
}
post/bot{token}/sendLocation

Отправить точку

С title — место (Message.venue).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
latitudenumberобов’язковий

−90…90.

longitudenumberобов’язковий

−180…180.

horizontal_accuracyintegerнеобов’язковий

Точность, метры.

live_periodintegerнеобов’язковий

Трансляция, секунды.

titlestringнеобов’язковий

Название места.

addressstringнеобов’язковий

Адрес.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendLocation' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "latitude": 0,
  "longitude": 0,
  "horizontal_accuracy": 0,
  "live_period": 0,
  "title": "string",
  "address": "string",
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendDice

Бросить кубик

Значение выбирает сервер.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
emojistringнеобов’язковий

Эмодзи игры; по умолчанию — игральная кость.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendDice' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "emoji": "string",
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/sendPoll

Отправить опрос

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
questionstringобов’язковий

Вопрос.

optionsstring[]обов’язковий

Варианты: строки или объекты {text}.

is_anonymousbooleanнеобов’язковий

По умолчанию true.

typestringнеобов’язковий

regular или quiz.

allows_multiple_answersbooleanнеобов’язковий

Несколько ответов.

correct_option_idintegerнеобов’язковий

quiz: номер верного варианта, с нуля.

explanationstringнеобов’язковий

quiz: пояснение.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendPoll' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "question": "string",
  "options": [
    "string"
  ],
  "is_anonymous": true,
  "type": "string",
  "allows_multiple_answers": true,
  "correct_option_id": 0,
  "explanation": "string",
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
Методи

Сообщения

Правка, удаление, пересылка, закреп, реакции.

post/bot{token}/editMessageText

Поправить текст

Своё сообщение — всегда; чужую публикацию канала — с правом «изменять публикации». Есть reply_markup — кнопки заменяются (пустой inline_keyboard — убрать).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/
textstringобов’язковий

Новый текст.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

entitiesMessageEntity[]необов’язковий

Оформление.

reply_markupInlineKeyboardMarkupнеобов’язковий

Новые кнопки.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/editMessageText' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "text": "string",
  "parse_mode": "string",
  "entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  }
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/editMessageCaption

Поправить подпись

Как editMessageText, но параметр — caption (+ caption_entities).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/
captionstringобов’язковий

Новая подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление.

reply_markupInlineKeyboardMarkupнеобов’язковий

Новые кнопки.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/editMessageCaption' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  }
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/editMessageReplyMarkup

Заменить кнопки

Только кнопки своего сообщения; текст и отметка «изменено» не трогаются. Так бот отвечает на нажатие.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Нет или пустой — убрать кнопки.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/editMessageReplyMarkup' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  }
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/deleteMessage

Удалить сообщение

Своё — всегда; в личном чате — любое; в группе и канале чужое — администратор с правом удалять; в канале сервера — с правом «Управлять сообщениями».

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/deleteMessages

Удалить несколько

До 100. Первый отказ прерывает пачку и возвращается ошибкой.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idsId[]обов’язковий

1–100 id.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMessages' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_ids": [
    "7349016627290112000"
  ]
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/forwardMessage

Переслать

С подписью «переслано от…» (если автор это разрешил).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
from_chat_idstringобов’язковий

Откуда (бот должен там быть).

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/
hide_authorsbooleanнеобов’язковий

Без подписи.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/forwardMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "from_chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "hide_authors": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  }
}
post/bot{token}/forwardMessages

Переслать несколько

Ответ — id только последнего пересланного.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
from_chat_idstringобов’язковий

Откуда.

/^[0-9]+$/
message_idsId[]обов’язковий

1–100 id.

hide_authorsbooleanнеобов’язковий

Без подписи.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/forwardMessages' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "from_chat_id": "7349016627290112000",
  "message_ids": [
    "7349016627290112000"
  ],
  "hide_authors": true
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "message_id": "7349016627290112000"
    }
  ]
}
post/bot{token}/copyMessage

Скопировать

Новое сообщение с тем же содержимым, без «переслано от». Нельзя скопировать служебные строки, уведомления, опросы, списки, кубики и подарки.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
from_chat_idstringобов’язковий

Откуда.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/
captionstringнеобов’язковий

Новая подпись.

parse_modestringнеобов’язковий

HTML или MarkdownV2.

caption_entitiesMessageEntity[]необов’язковий

Оформление.

reply_parametersReplyParametersнеобов’язковий

Ответить на сообщение этого чата.

reply_to_message_idstringнеобов’язковий

То же короче (устаревшая форма, но принимается).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

disable_notificationbooleanнеобов’язковий

Без звука.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/copyMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "from_chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "reply_parameters": {
    "message_id": "7349016627290112000",
    "quote": "string",
    "quote_position": 0
  },
  "reply_to_message_id": "7349016627290112000",
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  },
  "disable_notification": true
}'
Відповідь
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000"
  }
}
post/bot{token}/pinChatMessage

Закрепить

В группе — с правом закреплять; в канале — с правом изменять публикации.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/pinChatMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/unpinChatMessage

Открепить

Без message_id — самое свежее закреплённое.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringнеобов’язковий

Какое.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unpinChatMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/unpinAllChatMessages

Открепить все

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unpinAllChatMessages' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/setMessageReaction

Реакции бота

Реакции бота на сообщении становятся ровно такими (пустой список — снять все).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
message_idstringобов’язковий

Id сообщения.

/^[0-9]+$/
reactionReactionType[]необов’язковий

Только type: emoji.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setMessageReaction' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "reaction": [
    {
      "type": "emoji",
      "emoji": "string"
    }
  ]
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/sendChatAction

«Печатает…»

Видно 6 секунд или до следующего сообщения. В канале не показывается.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
actionstringобов’язковий

typing, upload_photo, record_video, upload_video, record_voice, upload_voice, upload_document, choose_sticker, record_video_note, upload_video_note.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendChatAction' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "action": "string"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/answerCallbackQuery

Ответить на нажатие

Принимается для совместимости и отвечает true; всплывающего уведомления приложение пока не показывает. Отвечайте сообщением или editMessageReplyMarkup.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

callback_query_idstringобов’язковий

CallbackQuery.id.

textstringнеобов’язковий

Не показывается.

show_alertbooleanнеобов’язковий

Не показывается.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/answerCallbackQuery' \
  -H 'Content-Type: application/json' \
  -d '{
  "callback_query_id": "string",
  "text": "string",
  "show_alert": true
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/getFile

Адрес файла

Свежий подписанный адрес (живёт сутки).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

file_idstringобов’язковий

file_id.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getFile' \
  -H 'Content-Type: application/json' \
  -d '{
  "file_id": "string"
}'
Відповідь
{
  "ok": true,
  "result": {
    "file_id": "string",
    "url": "string"
  }
}
Методи

Чаты

Чаты и их участники.

post/bot{token}/getChat

О чате

Только чат, где бот состоит.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChat' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000",
    "description": "string",
    "bio": "string",
    "avatar_url": "string",
    "member_count": 0,
    "is_public": true,
    "owner_id": "7349016627290112000",
    "linked_chat_id": "7349016627290112000",
    "slow_mode_delay": 0,
    "permissions": {
      "can_send_messages": true,
      "can_send_photos": true,
      "can_send_videos": true,
      "can_send_documents": true,
      "can_send_voice_notes": true,
      "can_send_video_notes": true,
      "can_send_other_messages": true,
      "can_send_polls": true,
      "can_add_reactions": true,
      "can_invite_users": true,
      "can_pin_messages": true
    },
    "server": {
      "id": "7349016627290112000",
      "name": "string",
      "username": "string",
      "description": "string",
      "avatar_url": "string",
      "member_count": 0,
      "owner_id": "7349016627290112000",
      "is_public": true
    },
    "has_protected_content": true,
    "created_date": 1760120000
  }
}
post/bot{token}/getChatMember

Участник

В канале чужих видит только администратор. В канале сервера — ServerMember.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "custom_title": "string",
    "can_change_info": true,
    "can_delete_messages": true,
    "can_restrict_members": true,
    "can_invite_users": true,
    "can_pin_messages": true,
    "can_manage_video_chats": true,
    "can_promote_members": true,
    "can_post_messages": true,
    "can_edit_messages": true,
    "permissions": {
      "can_send_messages": true,
      "can_send_photos": true,
      "can_send_videos": true,
      "can_send_documents": true,
      "can_send_voice_notes": true,
      "can_send_video_notes": true,
      "can_send_other_messages": true,
      "can_send_polls": true,
      "can_add_reactions": true,
      "can_invite_users": true,
      "can_pin_messages": true
    },
    "until_date": 1760120000,
    "joined_date": 1760120000
  }
}
post/bot{token}/getChatAdministrators

Администраторы

Группы и каналы; в канале — если бот администратор.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChatAdministrators' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "custom_title": "string",
      "can_change_info": true,
      "can_delete_messages": true,
      "can_restrict_members": true,
      "can_invite_users": true,
      "can_pin_messages": true,
      "can_manage_video_chats": true,
      "can_promote_members": true,
      "can_post_messages": true,
      "can_edit_messages": true,
      "permissions": {
        "can_send_messages": true,
        "can_send_photos": true,
        "can_send_videos": true,
        "can_send_documents": true,
        "can_send_voice_notes": true,
        "can_send_video_notes": true,
        "can_send_other_messages": true,
        "can_send_polls": true,
        "can_add_reactions": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "until_date": 1760120000,
      "joined_date": 1760120000
    }
  ]
}
post/bot{token}/getChatMemberCount

Сколько участников

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChatMemberCount' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": 0
}
post/bot{token}/banChatMember

Выгнать и запретить

Группа/канал — администратор с правом выгонять; канал сервера — запрет на весь сервер (право выгонять).

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/banChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/unbanChatMember

Снять запрет

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/
only_if_bannedbooleanнеобов’язковий

Ничего не делать, если запрета нет.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unbanChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "only_if_banned": true
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/restrictChatMember

Ограничить

Своё правило для участника группы. Все разрешения true — правило снимается.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/
permissionsChatPermissionsобов’язковий

Что можно.

until_dateintegerнеобов’язковий

До какого момента, секунды Unix; 0 — навсегда.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/restrictChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "permissions": {
    "can_send_messages": true,
    "can_send_photos": true,
    "can_send_videos": true,
    "can_send_documents": true,
    "can_send_voice_notes": true,
    "can_send_video_notes": true,
    "can_send_other_messages": true,
    "can_send_polls": true,
    "can_add_reactions": true,
    "can_invite_users": true,
    "can_pin_messages": true
  },
  "until_date": 0
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/promoteChatMember

Назначить администратором

Права can_*; все false — снять. Больше своих прав бот не раздаст.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/
can_change_infobooleanнеобов’язковий
can_delete_messagesbooleanнеобов’язковий
can_restrict_membersbooleanнеобов’язковий
can_invite_usersbooleanнеобов’язковий
can_pin_messagesbooleanнеобов’язковий
can_manage_video_chatsbooleanнеобов’язковий
can_promote_membersbooleanнеобов’язковий
can_post_messagesbooleanнеобов’язковий
can_edit_messagesbooleanнеобов’язковий

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/promoteChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "can_change_info": true,
  "can_delete_messages": true,
  "can_restrict_members": true,
  "can_invite_users": true,
  "can_pin_messages": true,
  "can_manage_video_chats": true,
  "can_promote_members": true,
  "can_post_messages": true,
  "can_edit_messages": true
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/setChatPermissions

Права участников

Что можно обычным участникам группы.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/
permissionsChatPermissionsобов’язковий

Разрешения.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setChatPermissions' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "permissions": {
    "can_send_messages": true,
    "can_send_photos": true,
    "can_send_videos": true,
    "can_send_documents": true,
    "can_send_voice_notes": true,
    "can_send_video_notes": true,
    "can_send_other_messages": true,
    "can_send_polls": true,
    "can_add_reactions": true,
    "can_invite_users": true,
    "can_pin_messages": true
  }
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/leaveChat

Уйти

Из группы или канала. С сервера — leaveServer.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

chat_idstringобов’язковий

Куда: id чата, id человека или @тег.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/leaveChat' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
Методи

Серверы

Серверы.

post/bot{token}/getMyServers

Мои серверы

Серверы, где состоит бот.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyServers'
Відповідь
{
  "ok": true,
  "result": [
    {
      "id": "7349016627290112000",
      "name": "string",
      "username": "string",
      "description": "string",
      "avatar_url": "string",
      "member_count": 0,
      "owner_id": "7349016627290112000",
      "is_public": true
    }
  ]
}
post/bot{token}/getServer

О сервере

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServer' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": {
    "id": "7349016627290112000",
    "name": "string",
    "username": "string",
    "description": "string",
    "avatar_url": "string",
    "member_count": 0,
    "owner_id": "7349016627290112000",
    "is_public": true
  }
}
post/bot{token}/getServerChannels

Каналы сервера

Только те, что бот видит по своим ролям.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerChannels' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    }
  ]
}
post/bot{token}/getServerMembers

Участники сервера

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
limitintegerнеобов’язковий

1–1000, по умолчанию 100.

offsetintegerнеобов’язковий

С какого.

querystringнеобов’язковий

Поиск по имени.

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerMembers' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "limit": 0,
  "offset": 0,
  "query": "string"
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "nickname": "string",
      "roles": [
        "7349016627290112000"
      ],
      "permissions": 0,
      "joined_date": 1760120000
    }
  ]
}
post/bot{token}/getServerMember

Участник сервера

Нет его — status left или banned.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "nickname": "string",
    "roles": [
      "7349016627290112000"
    ],
    "permissions": 0,
    "joined_date": 1760120000
  }
}
post/bot{token}/getServerRoles

Роли

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerRoles' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": [
    {
      "id": "7349016627290112000",
      "name": "string",
      "color": 0,
      "permissions": 0,
      "position": 0,
      "hoist": true,
      "mentionable": true,
      "is_default": true
    }
  ]
}
post/bot{token}/addServerMemberRole

Дать роль

Нужно право «Управлять ролями», роль ниже своей.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/
role_idstringобов’язковий

Роль.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/addServerMemberRole' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "role_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/removeServerMemberRole

Снять роль

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/
role_idstringобов’язковий

Роль.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/removeServerMemberRole' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "role_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/kickServerMember

Выгнать

Право «Выгонять»; только тех, кто ниже.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/kickServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/banServerMember

Запретить

Выгнать и не пускать обратно.

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/banServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/unbanServerMember

Снять запрет

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/
user_idstringобов’язковий

Id человека.

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unbanServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
post/bot{token}/leaveServer

Уйти с сервера

Параметри

tokenstringобов’язковийу шляху

Токен бота (BBAPITKN001: и 32 знака). Путь — /bot{token}/… или /bot/{token}/….

Тіло запиту application/json object

server_idstringобов’язковий

Id сервера (бот должен в нём состоять).

/^[0-9]+$/

Відповіді

200
object

Успех.

default
Error

Ошибка (см. «Ошибки» во введении).

Запит
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/leaveServer' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Відповідь
{
  "ok": true,
  "result": true
}
Об’єкти

Об’єкти

Id

string

Id — строка из цифр (снежинка, не помещается в float64).

"7349016627290112000"

Date

integer (int64)

Секунды Unix.

1760120000

OkTrue

object

Успех без данных.

okbooleanобов’язковий
true
resultbooleanобов’язковий
true
{
  "ok": true,
  "result": true
}

Error

object

Ошибка.

okbooleanобов’язковий
false
error_codeintegerобов’язковий

Равен HTTP-статусу.

descriptionstringобов’язковий

Пояснение для разработчика (по-английски).

parametersobjectнеобов’язковий

Подробности.

{
  "ok": false,
  "error_code": 0,
  "description": "string",
  "parameters": {
    "reason": "string",
    "vars": {},
    "retry_after": 0
  }
}

User

object

Человек или бот. У удалённого — только id, is_bot и is_deleted.

idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
is_botbooleanобов’язковий

Бот ли это.

first_namestringнеобов’язковий

Имя (в Blyk оно одно).

usernamestringнеобов’язковий

Тег без @.

avatar_urlstringнеобов’язковий

Аватарка, подписанный адрес на сутки.

is_deletedbooleanнеобов’язковий

Аккаунт удалён.

can_join_groupsbooleanнеобов’язковий

Только в getMe: всегда true.

can_read_all_group_messagesbooleanнеобов’язковий

Только в getMe: всегда true — режима приватности нет.

can_join_serversbooleanнеобов’язковий

Только в getMe: всегда true.

{
  "id": "7349016627290112000",
  "is_bot": true,
  "first_name": "string",
  "username": "string",
  "avatar_url": "string",
  "is_deleted": true,
  "can_join_groups": true,
  "can_read_all_group_messages": true,
  "can_join_servers": true
}

Chat

object

Чат. id — id переписки Blyk, его и передают в chat_id.

idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
typestringобов’язковий
privategroupchannelserver_channel
titlestringнеобов’язковий

Название группы, канала или канала сервера.

usernamestringнеобов’язковий

Тег группы/канала или собеседника.

first_namestringнеобов’язковий

Личный чат: имя собеседника.

user_idstringнеобов’язковий

Личный чат: id собеседника.

/^[0-9]+$/
server_idstringнеобов’язковий

Канал сервера: id сервера.

/^[0-9]+$/
channel_typestringнеобов’язковий

Канал сервера: вид.

textvoiceannouncementstage
topicstringнеобов’язковий

Только в getServerChannels: тема канала.

positionintegerнеобов’язковий

Только в getServerChannels: место в списке.

category_idstringнеобов’язковий

Только в getServerChannels: категория.

/^[0-9]+$/
{
  "id": "7349016627290112000",
  "type": "private",
  "title": "string",
  "username": "string",
  "first_name": "string",
  "user_id": "7349016627290112000",
  "server_id": "7349016627290112000",
  "channel_type": "text",
  "topic": "string",
  "position": 0,
  "category_id": "7349016627290112000"
}

ChatFullInfo

any
idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
typestringобов’язковий
privategroupchannelserver_channel
titlestringнеобов’язковий

Название группы, канала или канала сервера.

usernamestringнеобов’язковий

Тег группы/канала или собеседника.

first_namestringнеобов’язковий

Личный чат: имя собеседника.

user_idstringнеобов’язковий

Личный чат: id собеседника.

/^[0-9]+$/
server_idstringнеобов’язковий

Канал сервера: id сервера.

/^[0-9]+$/
channel_typestringнеобов’язковий

Канал сервера: вид.

textvoiceannouncementstage
topicstringнеобов’язковий

Только в getServerChannels: тема канала.

positionintegerнеобов’язковий

Только в getServerChannels: место в списке.

category_idstringнеобов’язковий

Только в getServerChannels: категория.

/^[0-9]+$/
descriptionstringнеобов’язковий

Описание группы/канала или тема канала сервера.

biostringнеобов’язковий

Личный чат: «о себе» собеседника.

avatar_urlstringнеобов’язковий

Аватарка, подписанный адрес на сутки.

member_countintegerнеобов’язковий

Участников (в личном чате — 2).

is_publicbooleanнеобов’язковий

Публичная группа/канал.

owner_idstringнеобов’язковий

Владелец группы/канала.

/^[0-9]+$/
linked_chat_idstringнеобов’язковий

Канал: его группа-обсуждение.

/^[0-9]+$/
slow_mode_delayintegerнеобов’язковий

Медленный режим, секунды.

permissionsChatPermissionsнеобов’язковий

Что можно обычному участнику группы. Не названное — запрещено.

serverServerнеобов’язковий

Сервер.

has_protected_contentbooleanнеобов’язковий

Запрещено копирование.

created_dateinteger (int64)необов’язковий

Когда создан.

{
  "id": "7349016627290112000",
  "type": "private",
  "title": "string",
  "username": "string",
  "first_name": "string",
  "user_id": "7349016627290112000",
  "server_id": "7349016627290112000",
  "channel_type": "text",
  "topic": "string",
  "position": 0,
  "category_id": "7349016627290112000",
  "description": "string",
  "bio": "string",
  "avatar_url": "string",
  "member_count": 0,
  "is_public": true,
  "owner_id": "7349016627290112000",
  "linked_chat_id": "7349016627290112000",
  "slow_mode_delay": 0,
  "permissions": {
    "can_send_messages": true,
    "can_send_photos": true,
    "can_send_videos": true,
    "can_send_documents": true,
    "can_send_voice_notes": true,
    "can_send_video_notes": true,
    "can_send_other_messages": true,
    "can_send_polls": true,
    "can_add_reactions": true,
    "can_invite_users": true,
    "can_pin_messages": true
  },
  "server": {
    "id": "7349016627290112000",
    "name": "string",
    "username": "string",
    "description": "string",
    "avatar_url": "string",
    "member_count": 0,
    "owner_id": "7349016627290112000",
    "is_public": true
  },
  "has_protected_content": true,
  "created_date": 1760120000
}

ChatPermissions

object

Что можно обычному участнику группы. Не названное — запрещено.

can_send_messagesbooleanнеобов’язковий
can_send_photosbooleanнеобов’язковий
can_send_videosbooleanнеобов’язковий
can_send_documentsbooleanнеобов’язковий
can_send_voice_notesbooleanнеобов’язковий
can_send_video_notesbooleanнеобов’язковий
can_send_other_messagesbooleanнеобов’язковий
can_send_pollsbooleanнеобов’язковий
can_add_reactionsbooleanнеобов’язковий
can_invite_usersbooleanнеобов’язковий
can_pin_messagesbooleanнеобов’язковий
{
  "can_send_messages": true,
  "can_send_photos": true,
  "can_send_videos": true,
  "can_send_documents": true,
  "can_send_voice_notes": true,
  "can_send_video_notes": true,
  "can_send_other_messages": true,
  "can_send_polls": true,
  "can_add_reactions": true,
  "can_invite_users": true,
  "can_pin_messages": true
}

ChatMember

object

Участник группы или канала. Права can_* — у administrator (у creator все).

statusstringобов’язковий
creatoradministratormemberrestrictedleftkickedbanned
userUserобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

custom_titlestringнеобов’язковий

Подпись администратора.

can_change_infobooleanнеобов’язковий
can_delete_messagesbooleanнеобов’язковий
can_restrict_membersbooleanнеобов’язковий
can_invite_usersbooleanнеобов’язковий
can_pin_messagesbooleanнеобов’язковий
can_manage_video_chatsbooleanнеобов’язковий
can_promote_membersbooleanнеобов’язковий
can_post_messagesbooleanнеобов’язковий
can_edit_messagesbooleanнеобов’язковий
permissionsChatPermissionsнеобов’язковий

Что можно обычному участнику группы. Не названное — запрещено.

until_dateinteger (int64)необов’язковий

restricted: до какого момента.

joined_dateinteger (int64)необов’язковий

Когда вступил.

{
  "status": "creator",
  "user": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "custom_title": "string",
  "can_change_info": true,
  "can_delete_messages": true,
  "can_restrict_members": true,
  "can_invite_users": true,
  "can_pin_messages": true,
  "can_manage_video_chats": true,
  "can_promote_members": true,
  "can_post_messages": true,
  "can_edit_messages": true,
  "permissions": {
    "can_send_messages": true,
    "can_send_photos": true,
    "can_send_videos": true,
    "can_send_documents": true,
    "can_send_voice_notes": true,
    "can_send_video_notes": true,
    "can_send_other_messages": true,
    "can_send_polls": true,
    "can_add_reactions": true,
    "can_invite_users": true,
    "can_pin_messages": true
  },
  "until_date": 1760120000,
  "joined_date": 1760120000
}

Server

object

Сервер.

idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
namestringобов’язковий

Название.

usernamestringнеобов’язковий

Тег.

descriptionstringнеобов’язковий

Описание.

avatar_urlstringнеобов’язковий

Аватарка.

member_countintegerнеобов’язковий

Участников.

owner_idIdнеобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
is_publicbooleanнеобов’язковий

Публичный.

{
  "id": "7349016627290112000",
  "name": "string",
  "username": "string",
  "description": "string",
  "avatar_url": "string",
  "member_count": 0,
  "owner_id": "7349016627290112000",
  "is_public": true
}

ServerMember

object

Участник сервера.

statusstringобов’язковий
creatormemberleftkickedbanned
userUserобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

nicknamestringнеобов’язковий

Ник на сервере.

rolesId[]необов’язковий
permissionsintegerнеобов’язковий

Маска прав (см. «Права на сервере»).

joined_dateDateнеобов’язковий

Секунды Unix.

{
  "status": "creator",
  "user": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "nickname": "string",
  "roles": [
    "7349016627290112000"
  ],
  "permissions": 0,
  "joined_date": 1760120000
}

Role

object

Роль на сервере.

idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
namestringобов’язковий
colorintegerнеобов’язковий

0xRRGGBB

permissionsintegerобов’язковий

Маска прав.

positionintegerобов’язковий
hoistbooleanнеобов’язковий
mentionablebooleanнеобов’язковий
is_defaultbooleanнеобов’язковий

@everyone

{
  "id": "7349016627290112000",
  "name": "string",
  "color": 0,
  "permissions": 0,
  "position": 0,
  "hoist": true,
  "mentionable": true,
  "is_default": true
}

Message

object

Сообщение. Текст с вложением приходит подписью (caption).

message_idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
fromUserнеобов’язковий

Автор. Нет у публикации канала.

sender_chatChatнеобов’язковий

Публикация канала: сам канал.

chatChatобов’язковий

Чат. id — id переписки Blyk, его и передают в chat_id.

server_idstringнеобов’язковий

Канал сервера: id сервера.

/^[0-9]+$/
dateDateобов’язковий

Секунды Unix.

edit_dateinteger (int64)необов’язковий

Когда правили.

author_signaturestringнеобов’язковий

Подпись администратора под публикацией, если канал подписывает.

forward_originMessageOriginнеобов’язковий

Откуда переслано.

reply_to_messageMessageнеобов’язковий

На что ответ: id, автор и начало текста.

quoteobjectнеобов’язковий

Цитата в ответе.

textstringнеобов’язковий
entitiesMessageEntity[]необов’язковий
captionstringнеобов’язковий
caption_entitiesMessageEntity[]необов’язковий
has_media_spoilerbooleanнеобов’язковий
photoPhotoSize[]необов’язковий
videoVideoнеобов’язковий

Видео или анимация.

animationVideoнеобов’язковий

Видео или анимация.

video_noteVideoNoteнеобов’язковий

Кружок.

voiceVoiceнеобов’язковий

Голосовое.

audioAudioнеобов’язковий

Музыка.

documentDocumentнеобов’язковий

Файл.

stickerStickerнеобов’язковий

Стикер из набора. file_id — id стикера для sendSticker.

media_groupMediaItem[]необов’язковий

Альбом: все вложения, если их больше одного (первое — ещё и в своём поле).

pollPollнеобов’язковий

Опрос.

locationLocationнеобов’язковий

Точка.

venueVenueнеобов’язковий

Место.

contactContactнеобов’язковий

Контакт.

diceDiceнеобов’язковий

Кубик: значение выбирает сервер.

viewsintegerнеобов’язковий

Просмотры публикации.

is_pinnedbooleanнеобов’язковий
reply_markupInlineKeyboardMarkupнеобов’язковий

Кнопки под сообщением.

{
  "message_id": "7349016627290112000",
  "from": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "sender_chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "server_id": "7349016627290112000",
  "date": 1760120000,
  "edit_date": 1760120000,
  "author_signature": "string",
  "forward_origin": {
    "type": "user",
    "sender_user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_user_name": "string",
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    }
  },
  "reply_to_message": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": null,
        "first_name": null,
        "username": null,
        "avatar_url": null,
        "is_deleted": null,
        "can_join_groups": null,
        "can_read_all_group_messages": null,
        "can_join_servers": null
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": null,
        "username": null,
        "first_name": null,
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": null,
        "position": null,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": null,
        "sender_chat": null,
        "chat": null,
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": null,
        "forward_origin": null,
        "reply_to_message": null,
        "quote": null,
        "text": null,
        "entities": null,
        "caption": null,
        "caption_entities": null,
        "has_media_spoiler": null,
        "photo": null,
        "video": null,
        "animation": null,
        "video_note": null,
        "voice": null,
        "audio": null,
        "document": null,
        "sticker": null,
        "media_group": null,
        "poll": null,
        "location": null,
        "venue": null,
        "contact": null,
        "dice": null,
        "views": null,
        "is_pinned": null,
        "reply_markup": null
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": null,
          "width": null,
          "height": null,
          "url": null
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          null
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          null
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": null,
            "callback_data": null
          }
        ]
      ]
    }
  },
  "quote": {
    "text": "string",
    "position": 0
  },
  "text": "string",
  "entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "caption": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "has_media_spoiler": true,
  "photo": [
    {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "url": "string"
    }
  ],
  "video": {
    "file_id": "string",
    "width": 0,
    "height": 0,
    "duration": 0,
    "file_name": "string",
    "url": "string"
  },
  "animation": {
    "file_id": "string",
    "width": 0,
    "height": 0,
    "duration": 0,
    "file_name": "string",
    "url": "string"
  },
  "video_note": {
    "file_id": "string",
    "length": 0,
    "duration": 0,
    "url": "string"
  },
  "voice": {
    "file_id": "string",
    "duration": 0,
    "url": "string"
  },
  "audio": {
    "file_id": "string",
    "duration": 0,
    "title": "string",
    "performer": "string",
    "file_name": "string",
    "url": "string"
  },
  "document": {
    "file_id": "string",
    "file_name": "string",
    "file_size_label": "string",
    "url": "string"
  },
  "sticker": {
    "file_id": "string",
    "width": 0,
    "height": 0,
    "emoji": "string",
    "url": "string"
  },
  "media_group": [
    {
      "type": "photo",
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    }
  ],
  "poll": {
    "question": "string",
    "options": [
      {
        "id": "string",
        "text": "string",
        "voter_count": 0
      }
    ],
    "total_voter_count": 0,
    "is_closed": true,
    "is_anonymous": true,
    "type": "regular",
    "allows_multiple_answers": true,
    "explanation": "string",
    "close_date": 1760120000
  },
  "location": {
    "latitude": 0,
    "longitude": 0,
    "horizontal_accuracy": 0,
    "live_period": 0,
    "heading": 0
  },
  "venue": {
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "title": "string",
    "address": "string"
  },
  "contact": {
    "first_name": "string",
    "username": "string",
    "user_id": "7349016627290112000"
  },
  "dice": {
    "emoji": "string",
    "value": 0
  },
  "views": 0,
  "is_pinned": true,
  "reply_markup": {
    "inline_keyboard": [
      [
        {
          "text": "string",
          "callback_data": "string"
        }
      ]
    ]
  }
}

MessageOrigin

object

Откуда переслано.

typestringобов’язковий
userhidden_userchannel
sender_userUserнеобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

sender_user_namestringнеобов’язковий
chatChatнеобов’язковий

Чат. id — id переписки Blyk, его и передают в chat_id.

{
  "type": "user",
  "sender_user": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "sender_user_name": "string",
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  }
}

MessageEntity

object

Отрезок с оформлением; offset и length — в UTF-16.

typestringобов’язковий
bolditalicunderlinestrikethroughspoilercodepreblockquoteexpandable_blockquotetext_linkcustom_emoji
offsetintegerобов’язковий
lengthintegerобов’язковий
urlstringнеобов’язковий
languagestringнеобов’язковий
custom_emoji_idIdнеобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
{
  "type": "bold",
  "offset": 0,
  "length": 0,
  "url": "string",
  "language": "string",
  "custom_emoji_id": "7349016627290112000"
}

PhotoSize

object

Снимок (в массиве photo — один размер).

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

widthintegerнеобов’язковий

Ширина.

heightintegerнеобов’язковий

Высота.

urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "width": 0,
  "height": 0,
  "url": "string"
}

Video

object

Видео или анимация.

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

widthintegerнеобов’язковий

Ширина.

heightintegerнеобов’язковий

Высота.

durationintegerнеобов’язковий

Длительность, секунды.

file_namestringнеобов’язковий
urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "width": 0,
  "height": 0,
  "duration": 0,
  "file_name": "string",
  "url": "string"
}

VideoNote

object

Кружок.

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

lengthintegerнеобов’язковий

Сторона.

durationintegerнеобов’язковий

Длительность, секунды.

urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "length": 0,
  "duration": 0,
  "url": "string"
}

Voice

object

Голосовое.

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

durationintegerнеобов’язковий

Длительность, секунды.

urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "duration": 0,
  "url": "string"
}

Audio

object

Музыка.

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

durationintegerнеобов’язковий

Длительность, секунды.

titlestringнеобов’язковий
performerstringнеобов’язковий
file_namestringнеобов’язковий
urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "duration": 0,
  "title": "string",
  "performer": "string",
  "file_name": "string",
  "url": "string"
}

Document

object

Файл.

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

file_namestringнеобов’язковий
file_size_labelstringнеобов’язковий

Размер, как его показывает приложение («12 KB»).

urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "file_name": "string",
  "file_size_label": "string",
  "url": "string"
}

Sticker

object

Стикер из набора. file_id — id стикера для sendSticker.

file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

widthintegerнеобов’язковий

Ширина.

heightintegerнеобов’язковий

Высота.

emojistringнеобов’язковий
urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "file_id": "string",
  "width": 0,
  "height": 0,
  "emoji": "string",
  "url": "string"
}

MediaItem

object

Вложение альбома.

typestringобов’язковий
photovideoanimationaudiovoicedocument
file_idstringобов’язковий

id файла Blyk — его можно передать обратно в send*.

widthintegerнеобов’язковий

Ширина.

heightintegerнеобов’язковий

Высота.

durationintegerнеобов’язковий

Длительность, секунды.

file_namestringнеобов’язковий
urlstringнеобов’язковий

Подписанный адрес для скачивания, живёт сутки.

{
  "type": "photo",
  "file_id": "string",
  "width": 0,
  "height": 0,
  "duration": 0,
  "file_name": "string",
  "url": "string"
}

File

object

Файл (getFile).

file_idstringобов’язковий
urlstringобов’язковий

Подписанный адрес, живёт сутки.

{
  "file_id": "string",
  "url": "string"
}

Poll

object

Опрос.

questionstringобов’язковий
optionsobject[]обов’язковий
total_voter_countintegerобов’язковий
is_closedbooleanнеобов’язковий
is_anonymousbooleanобов’язковий
typestringобов’язковий
regularquiz
allows_multiple_answersbooleanнеобов’язковий
explanationstringнеобов’язковий
close_dateDateнеобов’язковий

Секунды Unix.

{
  "question": "string",
  "options": [
    {
      "id": "string",
      "text": "string",
      "voter_count": 0
    }
  ],
  "total_voter_count": 0,
  "is_closed": true,
  "is_anonymous": true,
  "type": "regular",
  "allows_multiple_answers": true,
  "explanation": "string",
  "close_date": 1760120000
}

Location

object

Точка.

latitudenumberобов’язковий
longitudenumberобов’язковий
horizontal_accuracyintegerнеобов’язковий
live_periodintegerнеобов’язковий
headingintegerнеобов’язковий
{
  "latitude": 0,
  "longitude": 0,
  "horizontal_accuracy": 0,
  "live_period": 0,
  "heading": 0
}

Venue

object

Место.

locationLocationобов’язковий

Точка.

titlestringобов’язковий
addressstringнеобов’язковий
{
  "location": {
    "latitude": 0,
    "longitude": 0,
    "horizontal_accuracy": 0,
    "live_period": 0,
    "heading": 0
  },
  "title": "string",
  "address": "string"
}

Contact

object

Контакт.

first_namestringобов’язковий
usernamestringнеобов’язковий
user_idIdнеобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
{
  "first_name": "string",
  "username": "string",
  "user_id": "7349016627290112000"
}

Dice

object

Кубик: значение выбирает сервер.

emojistringобов’язковий
valueintegerобов’язковий
{
  "emoji": "string",
  "value": 0
}

InlineKeyboardMarkup

object

Кнопки под сообщением.

inline_keyboardInlineKeyboardButton[][]обов’язковий
{
  "inline_keyboard": [
    [
      {
        "text": "string",
        "callback_data": "string"
      }
    ]
  ]
}

InlineKeyboardButton

object

Кнопка. Только callback.

textstringобов’язковий

1–64

callback_datastringобов’язковий

1–64 байта; вернётся в callback_query.data.

{
  "text": "string",
  "callback_data": "string"
}

ReactionType

object

Реакция. Поддерживается только emoji.

typestringобов’язковий
emoji
emojistringнеобов’язковий
{
  "type": "emoji",
  "emoji": "string"
}

BotCommand

object

Команда: command — [a-z0-9_]{1,32} (ведущий / срезается, без повторов), description — 1–256 символов.

commandstringобов’язковий
descriptionstringобов’язковий
{
  "command": "string",
  "description": "string"
}

MenuButton

object

Строка меню: text 1–32 символа, command — [a-z0-9_]{1,32}.

textstringобов’язковий
commandstringобов’язковий
{
  "text": "string",
  "command": "string"
}

WebhookInfo

object

Состояние вебхука.

urlstringобов’язковий

Пусто — вебхука нет.

has_custom_certificatebooleanобов’язковий

Всегда false.

pending_update_countintegerобов’язковий
last_error_dateDateнеобов’язковий

Секунды Unix.

last_error_messagestringнеобов’язковий
max_connectionsintegerнеобов’язковий
allowed_updatesstring[]необов’язковий
{
  "url": "string",
  "has_custom_certificate": true,
  "pending_update_count": 0,
  "last_error_date": 1760120000,
  "last_error_message": "string",
  "max_connections": 0,
  "allowed_updates": [
    "string"
  ]
}

InputMedia

object

Элемент sendMediaGroup.

typestringобов’язковий
photovideoaudiodocument
mediastringобов’язковий

file_id, адрес http(s) или attach://<поле>.

captionstringнеобов’язковий
parse_modestringнеобов’язковий
caption_entitiesMessageEntity[]необов’язковий
widthintegerнеобов’язковий
heightintegerнеобов’язковий
durationintegerнеобов’язковий
titlestringнеобов’язковий
performerstringнеобов’язковий
has_spoilerbooleanнеобов’язковий
{
  "type": "photo",
  "media": "string",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "width": 0,
  "height": 0,
  "duration": 0,
  "title": "string",
  "performer": "string",
  "has_spoiler": true
}

ReplyParameters

object

На что ответить (в том же чате).

message_idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
quotestringнеобов’язковий

Кусок текста исходного сообщения.

quote_positionintegerнеобов’язковий

Где он начинается, UTF-16.

{
  "message_id": "7349016627290112000",
  "quote": "string",
  "quote_position": 0
}

MessageIdResult

object
message_idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
{
  "message_id": "7349016627290112000"
}

Update

object

Событие. Ровно одно поле кроме update_id.

update_idinteger (int64)обов’язковий

Номер события; следующий offset = update_id + 1.

messageMessageнеобов’язковий

Новое сообщение в личке, группе или канале сервера (в том числе /start, /stop, команды меню).

edited_messageMessageнеобов’язковий

Сообщение поправили.

channel_postMessageнеобов’язковий

Публикация в канале.

edited_channel_postMessageнеобов’язковий

Публикацию поправили.

callback_queryCallbackQueryнеобов’язковий

Нажали кнопку под сообщением бота.

message_reactionMessageReactionUpdatedнеобов’язковий

Реакцию поставили или сняли. В old/new — только изменившаяся. В канале user нет.

deleted_messageMessageDeletedнеобов’язковий

Сообщение удалили.

chat_clearedChatClearedнеобов’язковий

Человек очистил переписку с ботом у себя.

my_chat_memberChatMemberUpdatedнеобов’язковий

Бота добавили, убрали, запретили, назначили или сняли администратором в группе или канале.

my_server_memberServerMemberUpdatedнеобов’язковий

То же для сервера: добавили, выгнали, запретили, ушёл, сменились роли, сервер удалён.

{
  "update_id": 0,
  "message": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": null,
        "first_name": null,
        "username": null,
        "avatar_url": null,
        "is_deleted": null,
        "can_join_groups": null,
        "can_read_all_group_messages": null,
        "can_join_servers": null
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": null,
        "username": null,
        "first_name": null,
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": null,
        "position": null,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": null,
        "sender_chat": null,
        "chat": null,
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": null,
        "forward_origin": null,
        "reply_to_message": null,
        "quote": null,
        "text": null,
        "entities": null,
        "caption": null,
        "caption_entities": null,
        "has_media_spoiler": null,
        "photo": null,
        "video": null,
        "animation": null,
        "video_note": null,
        "voice": null,
        "audio": null,
        "document": null,
        "sticker": null,
        "media_group": null,
        "poll": null,
        "location": null,
        "venue": null,
        "contact": null,
        "dice": null,
        "views": null,
        "is_pinned": null,
        "reply_markup": null
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": null,
          "width": null,
          "height": null,
          "url": null
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          null
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          null
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": null,
            "callback_data": null
          }
        ]
      ]
    }
  },
  "edited_message": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": null,
        "first_name": null,
        "username": null,
        "avatar_url": null,
        "is_deleted": null,
        "can_join_groups": null,
        "can_read_all_group_messages": null,
        "can_join_servers": null
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": null,
        "username": null,
        "first_name": null,
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": null,
        "position": null,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": null,
        "sender_chat": null,
        "chat": null,
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": null,
        "forward_origin": null,
        "reply_to_message": null,
        "quote": null,
        "text": null,
        "entities": null,
        "caption": null,
        "caption_entities": null,
        "has_media_spoiler": null,
        "photo": null,
        "video": null,
        "animation": null,
        "video_note": null,
        "voice": null,
        "audio": null,
        "document": null,
        "sticker": null,
        "media_group": null,
        "poll": null,
        "location": null,
        "venue": null,
        "contact": null,
        "dice": null,
        "views": null,
        "is_pinned": null,
        "reply_markup": null
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": null,
          "width": null,
          "height": null,
          "url": null
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          null
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          null
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": null,
            "callback_data": null
          }
        ]
      ]
    }
  },
  "channel_post": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": null,
        "first_name": null,
        "username": null,
        "avatar_url": null,
        "is_deleted": null,
        "can_join_groups": null,
        "can_read_all_group_messages": null,
        "can_join_servers": null
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": null,
        "username": null,
        "first_name": null,
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": null,
        "position": null,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": null,
        "sender_chat": null,
        "chat": null,
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": null,
        "forward_origin": null,
        "reply_to_message": null,
        "quote": null,
        "text": null,
        "entities": null,
        "caption": null,
        "caption_entities": null,
        "has_media_spoiler": null,
        "photo": null,
        "video": null,
        "animation": null,
        "video_note": null,
        "voice": null,
        "audio": null,
        "document": null,
        "sticker": null,
        "media_group": null,
        "poll": null,
        "location": null,
        "venue": null,
        "contact": null,
        "dice": null,
        "views": null,
        "is_pinned": null,
        "reply_markup": null
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": null,
          "width": null,
          "height": null,
          "url": null
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          null
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          null
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": null,
            "callback_data": null
          }
        ]
      ]
    }
  },
  "edited_channel_post": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": null,
        "first_name": null,
        "username": null,
        "avatar_url": null,
        "is_deleted": null,
        "can_join_groups": null,
        "can_read_all_group_messages": null,
        "can_join_servers": null
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": null,
        "username": null,
        "first_name": null,
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": null,
        "position": null,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": null,
        "sender_chat": null,
        "chat": null,
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": null,
        "forward_origin": null,
        "reply_to_message": null,
        "quote": null,
        "text": null,
        "entities": null,
        "caption": null,
        "caption_entities": null,
        "has_media_spoiler": null,
        "photo": null,
        "video": null,
        "animation": null,
        "video_note": null,
        "voice": null,
        "audio": null,
        "document": null,
        "sticker": null,
        "media_group": null,
        "poll": null,
        "location": null,
        "venue": null,
        "contact": null,
        "dice": null,
        "views": null,
        "is_pinned": null,
        "reply_markup": null
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": null,
          "length": null,
          "url": null,
          "language": null,
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": null,
          "width": null,
          "height": null,
          "url": null
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          null
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          null
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": null,
            "callback_data": null
          }
        ]
      ]
    }
  },
  "callback_query": {
    "id": "string",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {
          "id": "7349016627290112000",
          "is_bot": null,
          "first_name": null,
          "username": null,
          "avatar_url": null,
          "is_deleted": null,
          "can_join_groups": null,
          "can_read_all_group_messages": null,
          "can_join_servers": null
        },
        "sender_chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": {
            "id": "7349016627290112000",
            "is_bot": null,
            "first_name": null,
            "username": null,
            "avatar_url": null,
            "is_deleted": null,
            "can_join_groups": null,
            "can_read_all_group_messages": null,
            "can_join_servers": null
          },
          "sender_user_name": "string",
          "chat": {
            "id": "7349016627290112000",
            "type": "private",
            "title": null,
            "username": null,
            "first_name": null,
            "user_id": "7349016627290112000",
            "server_id": "7349016627290112000",
            "channel_type": "text",
            "topic": null,
            "position": null,
            "category_id": "7349016627290112000"
          }
        },
        "reply_to_message": {
          "message_id": "7349016627290112000",
          "from": null,
          "sender_chat": null,
          "chat": null,
          "server_id": "7349016627290112000",
          "date": 1760120000,
          "edit_date": 1760120000,
          "author_signature": null,
          "forward_origin": null,
          "reply_to_message": null,
          "quote": null,
          "text": null,
          "entities": null,
          "caption": null,
          "caption_entities": null,
          "has_media_spoiler": null,
          "photo": null,
          "video": null,
          "animation": null,
          "video_note": null,
          "voice": null,
          "audio": null,
          "document": null,
          "sticker": null,
          "media_group": null,
          "poll": null,
          "location": null,
          "venue": null,
          "contact": null,
          "dice": null,
          "views": null,
          "is_pinned": null,
          "reply_markup": null
        },
        "quote": {
          "text": "string",
          "position": 0
        },
        "text": "string",
        "entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "caption": "string",
        "caption_entities": [
          {
            "type": "bold",
            "offset": null,
            "length": null,
            "url": null,
            "language": null,
            "custom_emoji_id": "7349016627290112000"
          }
        ],
        "has_media_spoiler": true,
        "photo": [
          {
            "file_id": null,
            "width": null,
            "height": null,
            "url": null
          }
        ],
        "video": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "animation": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        },
        "video_note": {
          "file_id": "string",
          "length": 0,
          "duration": 0,
          "url": "string"
        },
        "voice": {
          "file_id": "string",
          "duration": 0,
          "url": "string"
        },
        "audio": {
          "file_id": "string",
          "duration": 0,
          "title": "string",
          "performer": "string",
          "file_name": "string",
          "url": "string"
        },
        "document": {
          "file_id": "string",
          "file_name": "string",
          "file_size_label": "string",
          "url": "string"
        },
        "sticker": {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "emoji": "string",
          "url": "string"
        },
        "media_group": [
          {
            "type": "photo",
            "file_id": null,
            "width": null,
            "height": null,
            "duration": null,
            "file_name": null,
            "url": null
          }
        ],
        "poll": {
          "question": "string",
          "options": [
            null
          ],
          "total_voter_count": 0,
          "is_closed": true,
          "is_anonymous": true,
          "type": "regular",
          "allows_multiple_answers": true,
          "explanation": "string",
          "close_date": 1760120000
        },
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "venue": {
          "location": {
            "latitude": null,
            "longitude": null,
            "horizontal_accuracy": null,
            "live_period": null,
            "heading": null
          },
          "title": "string",
          "address": "string"
        },
        "contact": {
          "first_name": "string",
          "username": "string",
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": "string",
          "value": 0
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": [
            null
          ]
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": "string",
            "text": "string",
            "voter_count": 0
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            {
              "text": null,
              "callback_data": null
            }
          ]
        ]
      }
    },
    "data": "string",
    "button_text": "string",
    "button_row": 0,
    "button_column": 0,
    "chat_instance": "string"
  },
  "message_reaction": {
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "message_id": "7349016627290112000",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "date": 1760120000,
    "old_reaction": [
      {
        "type": "emoji",
        "emoji": "string"
      }
    ],
    "new_reaction": [
      {
        "type": "emoji",
        "emoji": "string"
      }
    ]
  },
  "deleted_message": {
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "date": 1760120000
  },
  "chat_cleared": {
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "date": 1760120000
  },
  "my_chat_member": {
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "date": 1760120000,
    "old_chat_member": {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "custom_title": "string",
      "can_change_info": true,
      "can_delete_messages": true,
      "can_restrict_members": true,
      "can_invite_users": true,
      "can_pin_messages": true,
      "can_manage_video_chats": true,
      "can_promote_members": true,
      "can_post_messages": true,
      "can_edit_messages": true,
      "permissions": {
        "can_send_messages": true,
        "can_send_photos": true,
        "can_send_videos": true,
        "can_send_documents": true,
        "can_send_voice_notes": true,
        "can_send_video_notes": true,
        "can_send_other_messages": true,
        "can_send_polls": true,
        "can_add_reactions": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "until_date": 1760120000,
      "joined_date": 1760120000
    },
    "new_chat_member": {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "custom_title": "string",
      "can_change_info": true,
      "can_delete_messages": true,
      "can_restrict_members": true,
      "can_invite_users": true,
      "can_pin_messages": true,
      "can_manage_video_chats": true,
      "can_promote_members": true,
      "can_post_messages": true,
      "can_edit_messages": true,
      "permissions": {
        "can_send_messages": true,
        "can_send_photos": true,
        "can_send_videos": true,
        "can_send_documents": true,
        "can_send_voice_notes": true,
        "can_send_video_notes": true,
        "can_send_other_messages": true,
        "can_send_polls": true,
        "can_add_reactions": true,
        "can_invite_users": true,
        "can_pin_messages": true
      },
      "until_date": 1760120000,
      "joined_date": 1760120000
    }
  },
  "my_server_member": {
    "server": {
      "id": "7349016627290112000",
      "name": "string",
      "username": "string",
      "description": "string",
      "avatar_url": "string",
      "member_count": 0,
      "owner_id": "7349016627290112000",
      "is_public": true
    },
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "date": 1760120000,
    "old_server_member": {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "nickname": "string",
      "roles": [
        "7349016627290112000"
      ],
      "permissions": 0,
      "joined_date": 1760120000
    },
    "new_server_member": {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "nickname": "string",
      "roles": [
        "7349016627290112000"
      ],
      "permissions": 0,
      "joined_date": 1760120000
    }
  }
}

CallbackQuery

object

Нажали кнопку под сообщением бота.

idstringобов’язковий

Id нажатия (для answerCallbackQuery).

fromUserобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

messageMessageнеобов’язковий

Сообщение. Текст с вложением приходит подписью (caption).

datastringобов’язковий

callback_data кнопки.

button_textstringнеобов’язковий

Подпись кнопки.

button_rowintegerобов’язковий

Ряд, с нуля.

button_columnintegerобов’язковий

Столбец, с нуля.

chat_instancestringнеобов’язковий

Id чата.

{
  "id": "string",
  "from": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "message": {
    "message_id": "7349016627290112000",
    "from": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "sender_chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "chat": {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    },
    "server_id": "7349016627290112000",
    "date": 1760120000,
    "edit_date": 1760120000,
    "author_signature": "string",
    "forward_origin": {
      "type": "user",
      "sender_user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_user_name": "string",
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      }
    },
    "reply_to_message": {
      "message_id": "7349016627290112000",
      "from": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "sender_chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "chat": {
        "id": "7349016627290112000",
        "type": "private",
        "title": "string",
        "username": "string",
        "first_name": "string",
        "user_id": "7349016627290112000",
        "server_id": "7349016627290112000",
        "channel_type": "text",
        "topic": "string",
        "position": 0,
        "category_id": "7349016627290112000"
      },
      "server_id": "7349016627290112000",
      "date": 1760120000,
      "edit_date": 1760120000,
      "author_signature": "string",
      "forward_origin": {
        "type": "user",
        "sender_user": {
          "id": "7349016627290112000",
          "is_bot": true,
          "first_name": "string",
          "username": "string",
          "avatar_url": "string",
          "is_deleted": true,
          "can_join_groups": true,
          "can_read_all_group_messages": true,
          "can_join_servers": true
        },
        "sender_user_name": "string",
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": "string",
          "username": "string",
          "first_name": "string",
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": "string",
          "position": 0,
          "category_id": "7349016627290112000"
        }
      },
      "reply_to_message": {
        "message_id": "7349016627290112000",
        "from": {},
        "sender_chat": {},
        "chat": {
          "id": "7349016627290112000",
          "type": "private",
          "title": null,
          "username": null,
          "first_name": null,
          "user_id": "7349016627290112000",
          "server_id": "7349016627290112000",
          "channel_type": "text",
          "topic": null,
          "position": null,
          "category_id": "7349016627290112000"
        },
        "server_id": "7349016627290112000",
        "date": 1760120000,
        "edit_date": 1760120000,
        "author_signature": "string",
        "forward_origin": {
          "type": "user",
          "sender_user": null,
          "sender_user_name": null,
          "chat": null
        },
        "reply_to_message": {},
        "quote": {
          "text": null,
          "position": null
        },
        "text": "string",
        "entities": [
          null
        ],
        "caption": "string",
        "caption_entities": [
          null
        ],
        "has_media_spoiler": true,
        "photo": [
          null
        ],
        "video": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "animation": {
          "file_id": null,
          "width": null,
          "height": null,
          "duration": null,
          "file_name": null,
          "url": null
        },
        "video_note": {
          "file_id": null,
          "length": null,
          "duration": null,
          "url": null
        },
        "voice": {
          "file_id": null,
          "duration": null,
          "url": null
        },
        "audio": {
          "file_id": null,
          "duration": null,
          "title": null,
          "performer": null,
          "file_name": null,
          "url": null
        },
        "document": {
          "file_id": null,
          "file_name": null,
          "file_size_label": null,
          "url": null
        },
        "sticker": {
          "file_id": null,
          "width": null,
          "height": null,
          "emoji": null,
          "url": null
        },
        "media_group": [
          null
        ],
        "poll": {
          "question": null,
          "options": null,
          "total_voter_count": null,
          "is_closed": null,
          "is_anonymous": null,
          "type": "regular",
          "allows_multiple_answers": null,
          "explanation": null,
          "close_date": 1760120000
        },
        "location": {
          "latitude": null,
          "longitude": null,
          "horizontal_accuracy": null,
          "live_period": null,
          "heading": null
        },
        "venue": {
          "location": null,
          "title": null,
          "address": null
        },
        "contact": {
          "first_name": null,
          "username": null,
          "user_id": "7349016627290112000"
        },
        "dice": {
          "emoji": null,
          "value": null
        },
        "views": 0,
        "is_pinned": true,
        "reply_markup": {
          "inline_keyboard": null
        }
      },
      "quote": {
        "text": "string",
        "position": 0
      },
      "text": "string",
      "entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "caption": "string",
      "caption_entities": [
        {
          "type": "bold",
          "offset": 0,
          "length": 0,
          "url": "string",
          "language": "string",
          "custom_emoji_id": "7349016627290112000"
        }
      ],
      "has_media_spoiler": true,
      "photo": [
        {
          "file_id": "string",
          "width": 0,
          "height": 0,
          "url": "string"
        }
      ],
      "video": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "animation": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      },
      "video_note": {
        "file_id": "string",
        "length": 0,
        "duration": 0,
        "url": "string"
      },
      "voice": {
        "file_id": "string",
        "duration": 0,
        "url": "string"
      },
      "audio": {
        "file_id": "string",
        "duration": 0,
        "title": "string",
        "performer": "string",
        "file_name": "string",
        "url": "string"
      },
      "document": {
        "file_id": "string",
        "file_name": "string",
        "file_size_label": "string",
        "url": "string"
      },
      "sticker": {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "emoji": "string",
        "url": "string"
      },
      "media_group": [
        {
          "type": "photo",
          "file_id": "string",
          "width": 0,
          "height": 0,
          "duration": 0,
          "file_name": "string",
          "url": "string"
        }
      ],
      "poll": {
        "question": "string",
        "options": [
          {
            "id": null,
            "text": null,
            "voter_count": null
          }
        ],
        "total_voter_count": 0,
        "is_closed": true,
        "is_anonymous": true,
        "type": "regular",
        "allows_multiple_answers": true,
        "explanation": "string",
        "close_date": 1760120000
      },
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "venue": {
        "location": {
          "latitude": 0,
          "longitude": 0,
          "horizontal_accuracy": 0,
          "live_period": 0,
          "heading": 0
        },
        "title": "string",
        "address": "string"
      },
      "contact": {
        "first_name": "string",
        "username": "string",
        "user_id": "7349016627290112000"
      },
      "dice": {
        "emoji": "string",
        "value": 0
      },
      "views": 0,
      "is_pinned": true,
      "reply_markup": {
        "inline_keyboard": [
          [
            null
          ]
        ]
      }
    },
    "quote": {
      "text": "string",
      "position": 0
    },
    "text": "string",
    "entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "caption": "string",
    "caption_entities": [
      {
        "type": "bold",
        "offset": 0,
        "length": 0,
        "url": "string",
        "language": "string",
        "custom_emoji_id": "7349016627290112000"
      }
    ],
    "has_media_spoiler": true,
    "photo": [
      {
        "file_id": "string",
        "width": 0,
        "height": 0,
        "url": "string"
      }
    ],
    "video": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "animation": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "duration": 0,
      "file_name": "string",
      "url": "string"
    },
    "video_note": {
      "file_id": "string",
      "length": 0,
      "duration": 0,
      "url": "string"
    },
    "voice": {
      "file_id": "string",
      "duration": 0,
      "url": "string"
    },
    "audio": {
      "file_id": "string",
      "duration": 0,
      "title": "string",
      "performer": "string",
      "file_name": "string",
      "url": "string"
    },
    "document": {
      "file_id": "string",
      "file_name": "string",
      "file_size_label": "string",
      "url": "string"
    },
    "sticker": {
      "file_id": "string",
      "width": 0,
      "height": 0,
      "emoji": "string",
      "url": "string"
    },
    "media_group": [
      {
        "type": "photo",
        "file_id": "string",
        "width": 0,
        "height": 0,
        "duration": 0,
        "file_name": "string",
        "url": "string"
      }
    ],
    "poll": {
      "question": "string",
      "options": [
        {
          "id": "string",
          "text": "string",
          "voter_count": 0
        }
      ],
      "total_voter_count": 0,
      "is_closed": true,
      "is_anonymous": true,
      "type": "regular",
      "allows_multiple_answers": true,
      "explanation": "string",
      "close_date": 1760120000
    },
    "location": {
      "latitude": 0,
      "longitude": 0,
      "horizontal_accuracy": 0,
      "live_period": 0,
      "heading": 0
    },
    "venue": {
      "location": {
        "latitude": 0,
        "longitude": 0,
        "horizontal_accuracy": 0,
        "live_period": 0,
        "heading": 0
      },
      "title": "string",
      "address": "string"
    },
    "contact": {
      "first_name": "string",
      "username": "string",
      "user_id": "7349016627290112000"
    },
    "dice": {
      "emoji": "string",
      "value": 0
    },
    "views": 0,
    "is_pinned": true,
    "reply_markup": {
      "inline_keyboard": [
        [
          {
            "text": "string",
            "callback_data": "string"
          }
        ]
      ]
    }
  },
  "data": "string",
  "button_text": "string",
  "button_row": 0,
  "button_column": 0,
  "chat_instance": "string"
}

MessageReactionUpdated

object

Реакцию поставили или сняли. В old/new — только изменившаяся. В канале user нет.

chatChatобов’язковий

Чат. id — id переписки Blyk, его и передают в chat_id.

server_idIdнеобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
message_idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
userUserнеобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

dateDateобов’язковий

Секунды Unix.

old_reactionReactionType[]обов’язковий
new_reactionReactionType[]обов’язковий
{
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "server_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "user": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "date": 1760120000,
  "old_reaction": [
    {
      "type": "emoji",
      "emoji": "string"
    }
  ],
  "new_reaction": [
    {
      "type": "emoji",
      "emoji": "string"
    }
  ]
}

MessageDeleted

object

Сообщение удалили.

chatChatобов’язковий

Чат. id — id переписки Blyk, его и передают в chat_id.

server_idIdнеобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
message_idIdобов’язковий

Id — строка из цифр (снежинка, не помещается в float64).

/^[0-9]+$/
fromUserнеобов’язковий

Кто удалил.

dateDateобов’язковий

Секунды Unix.

{
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "server_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "from": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "date": 1760120000
}

ChatCleared

object

Человек очистил переписку с ботом у себя.

chatChatобов’язковий

Чат. id — id переписки Blyk, его и передают в chat_id.

fromUserобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

dateDateобов’язковий

Секунды Unix.

{
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "from": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "date": 1760120000
}

ChatMemberUpdated

object

Бота добавили, убрали, запретили, назначили или сняли администратором в группе или канале.

chatChatобов’язковий

Чат. id — id переписки Blyk, его и передают в chat_id.

fromUserобов’язковий

Кто это сделал (сам бот — если ушёл).

dateDateобов’язковий

Секунды Unix.

old_chat_memberChatMemberобов’язковий

Участник группы или канала. Права can_* — у administrator (у creator все).

new_chat_memberChatMemberобов’язковий

Участник группы или канала. Права can_* — у administrator (у creator все).

{
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "from": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "date": 1760120000,
  "old_chat_member": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "custom_title": "string",
    "can_change_info": true,
    "can_delete_messages": true,
    "can_restrict_members": true,
    "can_invite_users": true,
    "can_pin_messages": true,
    "can_manage_video_chats": true,
    "can_promote_members": true,
    "can_post_messages": true,
    "can_edit_messages": true,
    "permissions": {
      "can_send_messages": true,
      "can_send_photos": true,
      "can_send_videos": true,
      "can_send_documents": true,
      "can_send_voice_notes": true,
      "can_send_video_notes": true,
      "can_send_other_messages": true,
      "can_send_polls": true,
      "can_add_reactions": true,
      "can_invite_users": true,
      "can_pin_messages": true
    },
    "until_date": 1760120000,
    "joined_date": 1760120000
  },
  "new_chat_member": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "custom_title": "string",
    "can_change_info": true,
    "can_delete_messages": true,
    "can_restrict_members": true,
    "can_invite_users": true,
    "can_pin_messages": true,
    "can_manage_video_chats": true,
    "can_promote_members": true,
    "can_post_messages": true,
    "can_edit_messages": true,
    "permissions": {
      "can_send_messages": true,
      "can_send_photos": true,
      "can_send_videos": true,
      "can_send_documents": true,
      "can_send_voice_notes": true,
      "can_send_video_notes": true,
      "can_send_other_messages": true,
      "can_send_polls": true,
      "can_add_reactions": true,
      "can_invite_users": true,
      "can_pin_messages": true
    },
    "until_date": 1760120000,
    "joined_date": 1760120000
  }
}

ServerMemberUpdated

object

То же для сервера: добавили, выгнали, запретили, ушёл, сменились роли, сервер удалён.

serverServerобов’язковий

Сервер.

fromUserобов’язковий

Человек или бот. У удалённого — только id, is_bot и is_deleted.

dateDateобов’язковий

Секунды Unix.

old_server_memberServerMemberобов’язковий

Участник сервера.

new_server_memberServerMemberобов’язковий

Участник сервера.

{
  "server": {
    "id": "7349016627290112000",
    "name": "string",
    "username": "string",
    "description": "string",
    "avatar_url": "string",
    "member_count": 0,
    "owner_id": "7349016627290112000",
    "is_public": true
  },
  "from": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "date": 1760120000,
  "old_server_member": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "nickname": "string",
    "roles": [
      "7349016627290112000"
    ],
    "permissions": 0,
    "joined_date": 1760120000
  },
  "new_server_member": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "nickname": "string",
    "roles": [
      "7349016627290112000"
    ],
    "permissions": 0,
    "joined_date": 1760120000
  }
}

Документація доступна російською та англійською.