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
  }
}