Blyk

Entwickler

Dokumentation der Bot API und von „Mit Blyk anmelden“ (OAuth 2.0).

Blyk Bot APIVersion 2.0.0

Bot API

Ein Bot ist ein Blyk-Konto mit Token. Erstelle ihn in der App — Du → Entwicklung → Bots — und rufe seine Methoden per HTTP auf.

  1. Bot in der App erstellen
  2. Token kopieren
  3. {BASE}/bot/{TOKEN}/{methode}
Basis-URLhttps://gateway.blyk.chat

The Blyk bot HTTP API: methods, updates, webhooks.

Basics

  • A bot is a Blyk account with a token of the form BBAPITKN001:…. The token is issued when you create a bot in the app: "You" → "Development" → "Bots". Resetting the token in the app disables the old one immediately.

  • Method URL: {BASE}/bot{TOKEN}/{method} or {BASE}/bot/{TOKEN}/{method}. Method names are case-insensitive.

  • Every method accepts both GET and POST. Parameters go in the query string, an application/json body, application/x-www-form-urlencoded or multipart/form-data (the latter to upload files). In forms and query strings, complex parameters (reply_markup, entities, media…) are passed as JSON strings. A JSON body is limited to 1 MB, multipart to 50 MB.

  • The response is always the same envelope:

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

    error_code equals the HTTP status. description is in English, for the bot developer.

  • Objects are plain snake_case JSON: no type-name fields and no wrappers. Empty and absent fields are omitted entirely.

  • Every id is a string of digits ("7349016627290112000"): Blyk ids are snowflakes and do not fit in a float64. Numbers are accepted on input, but in JavaScript they lose precision before they are even sent. The exception is update_id: it is the bot's own event counter and is a number.

  • Times (date, edit_date, until_date…) are Unix seconds.

  • A bot receives no events about its own actions.

Chats

Chat.type is one of four kinds:

type what it is
private a private chat; the peer is user_id, first_name, username
group a group
channel a channel (only administrators post)
server_channel a server channel; has server_id and channel_type (text, voice, announcement, stage)

chat_id in methods is any of:

  • Chat.id from an update (the Blyk conversation id);
  • a user id — the private chat with that user (so replying to message.from.id works too);
  • @tag — a user or a public group/channel.

A message from a server channel carries server_id both in chat and in the Message itself.

Where a bot can be

  • Private chat. The /start rule applies (below).
  • Group. Any group administrator can add a bot — even without the "add members" right; a plain member cannot (FAIL_BOT_NEEDS_ADMIN). In a group the bot receives every message (there is no privacy mode). Deleting other people's messages, pinning, banning — if it is an administrator with that right, like a person. Its own messages it can always edit and delete.
  • Channel. A bot added to a channel immediately becomes an administrator with the rights to post, edit and delete posts — but no more than the person who added it has. sendMessage to a channel is a post: the author is hidden and subscribers see the channel itself (the update has sender_chat instead of from). Posts arrive as channel_post.
  • Server. A bot is added by someone with the "Manage server" permission (server settings → "Bots") and removed by someone who can kick. The bot is a regular member: its roles define its permissions, and it only receives messages from channels its roles let it view. Deleting other people's messages requires "Manage messages".
  • The bot learns that it was added, removed or had its rights changed from a my_chat_member (group, channel) or my_server_member (server) update.

Starting a bot: /start and /stop

  • Every bot–user pair has a "started" state. By default the bot is not started.
  • The user starts the bot by sending /start (a tail is allowed: /start ref42, as is the bot's tag: /start@tagbot) and stops it with /stop. Until the bot is started, the app shows a "Start" button instead of the input field, which sends /start.
  • Both arrive as a regular message. By the time the bot gets them, the state has already changed.
  • Until started, the bot cannot write to this user in the private chat, including replies: 403, reason: FAIL_BOT_NOT_STARTED. It cannot create a new private chat with such a user either.
  • Groups, channels and servers are not affected.

Receiving updates

Two ways: long polling (getUpdates) or a webhook (setWebhook). While a webhook is set, getUpdates returns 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
  • Every Update has exactly one field besides update_id: message, edited_message, channel_post, edited_channel_post, callback_query, message_reaction, deleted_message, chat_cleared, my_chat_member or my_server_member.
  • allowed_updates (in getUpdates or setWebhook) selects which of them to receive and is remembered until the next call. An empty list means all. Updates of kinds the bot did not ask for are not stored.
  • Update ids increase; every bot has its own numbering (1, 2, 3…).
  • An unclaimed update is kept for 24 hours.
  • Only one getUpdates may be pending per bot; a second one gets 409. When the token changes, the pending request ends with 401.

Webhook

  • The URL must be https and public (local-network and internal addresses are refused).
  • Updates are sent as POST requests one at a time, strictly in order; the body is the same Update getUpdates would return.
  • A 2xx response means delivered and removed from the queue. Otherwise the update is retried with a growing pause (up to a minute); the last error is visible in getWebhookInfo.
  • If secret_token is set, it arrives in the X-Blyk-Bot-Api-Secret-Token header.
  • The webhook response body is not read: you cannot call a method by replying to a webhook.

Formatting

parse_mode: HTML or MarkdownV2 (Markdown uses the same parser), or explicit entities. Entity types: bold, italic, underline, strikethrough, spoiler, code, pre, blockquote, expandable_blockquote, text_link, custom_emoji. offset and length are in UTF-16 code units. Types Blyk does not have (mention, url, hashtag…) are silently skipped on input: the app finds them in the text itself.

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>; entities &lt; &gt; &amp; &quot;.

MarkdownV2: *bold*, _italic_, __underline__, ~strikethrough~, ||spoiler||, `code`, a triple-backtick block (language on the first line), [text](url), >quote; \\ before a special character means the character itself.

Files

A file in sendPhoto, sendDocument and the rest is one of:

  • file_id — a file already in Blyk (from a received message or an earlier send): not downloaded again;
  • an http(s) URL — Blyk downloads it itself, up to 20 MB;
  • a multipart/form-data upload in a field of the same name (photo, document…) or attach://<field>, up to 50 MB.

Files in messages carry url — a signed download URL valid for 24 hours; getFile issues a fresh one.

Buttons

reply_markup — {"inline_keyboard": [[{"text": "Yes", "callback_data": "yes"}]]}: up to 6 rows of 1–4 buttons, text 1–64 characters, callback_data 1–64 bytes. A press arrives as a callback_query with the data the bot put in. Only callback buttons are supported.

Server permissions

Role.permissions and ServerMember.permissions are bit masks:

bit value permission
0 1 view channels
1 2 send messages
2 4 manage messages (delete and pin others')
3 8 manage channels
4 16 manage roles
5 32 manage server (including adding bots)
6 64 kick members
7 128 create invites
8 256 connect to voice
9 512 speak in voice
10 1024 mention everyone
11 2048 administrator (everything)

Errors

HTTP meaning example parameters.reason
400 bad request, no such chat or message FAIL_MESSAGE_TOO_LONG, FAIL_MESSAGE_EMPTY, FAIL_NO_SUCH_MESSAGE, FAIL_BUTTONS_INVALID
401 unknown or reset token —
403 not allowed FAIL_BOT_NOT_STARTED, FAIL_NOT_A_MEMBER, FAIL_MISSING_PERMISSION, FAIL_CHANNEL_READ_ONLY, FAIL_SLOW_MODE
404 no such method —
409 a second concurrent getUpdates, or a webhook is set —
500 could not read the queue or save a setting —
502 failure on the Blyk side —
504 Blyk did not answer in time —

parameters.reason is the refusal reason from Blyk's shared enumeration (FAIL_*), parameters.vars its details, parameters.retry_after how many seconds to wait before retrying (slow mode). Validation errors of the request itself come without reason, explained in description. 500, 502 and 504 may be retried.

Not supported

  • Inline mode, games, payments via the Bot API, sticker sets, stories, business accounts.
  • url, login_url, pay, web_app and other buttons — only callback_data.
  • ReplyKeyboardMarkup: a bot has one menu by the input field — setMyMenu.
  • answerCallbackQuery is accepted and returns true, but the app does not show a popup yet.
  • message_reaction carries only the reaction that changed, not the user's whole set.
  • sendMediaGroup returns one Message: an album is a single message in Blyk.
  • forwardMessages returns only the id of the last forwarded message.
  • Calling a method by replying to a webhook.
  • Privacy mode in groups: the bot sees every message.
  • chat_member (updates about other members), chat_join_request, poll_answer.
  • setMyCommands: scope and language_code are ignored — one list per bot.
Methoden

Updates

getUpdates and webhooks.

post/bot{token}/getUpdates

Get updates

Long polling. If there are updates the response is immediate; otherwise the request waits up to timeout and returns an empty array. All updates below offset are considered received and deleted. While a webhook is set — 409; a second concurrent request — 409; token reset while waiting — 401.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

offsetintegeroptional

First update to return. Negative — the last |offset| updates, the rest forgotten.

limitintegeroptional

1–100, default 100. Out of range — 400.

timeoutintegeroptional

Seconds to wait, 0–60 (more is capped), default 0.

allowed_updatesstring[]optional

Update kinds to receive; remembered. Empty list — all.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
  ]
}'
Antwort
{
  "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

Set a webhook

Updates will be POSTed to url (see "Webhook" in the introduction). An empty url is the same as deleteWebhook. A pending getUpdates is terminated.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

urlstringerforderlich

An https URL on the public internet.

secret_tokenstringoptional

1–256 characters A-Z a-z 0-9 _ -; sent in X-Blyk-Bot-Api-Secret-Token.

max_connectionsintegeroptional

1–100, default 40. Stored; delivery is still one update at a time, in order.

allowed_updatesstring[]optional

As in getUpdates.

drop_pending_updatesbooleanoptional

Drop all pending updates.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/deleteWebhook

Delete the webhook

Updates go back to getUpdates.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

drop_pending_updatesbooleanoptional

Drop all pending updates.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteWebhook' \
  -H 'Content-Type: application/json' \
  -d '{
  "drop_pending_updates": true
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/getWebhookInfo

Webhook info

URL, pending update count, last delivery error.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getWebhookInfo'
Antwort
{
  "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"
    ]
  }
}
Methoden

About the bot

getMe, commands and menu.

post/bot{token}/getMe

About me

The bot as a User; can_join_groups, can_read_all_group_messages, can_join_servers are always true.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMe'
Antwort
{
  "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

Set commands

The list replaces the previous one; at most 100. The app suggests them when "/" is typed. scope and language_code are ignored.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

commandsBotCommand[]erforderlich

Commands.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setMyCommands' \
  -H 'Content-Type: application/json' \
  -d '{
  "commands": [
    {
      "command": "string",
      "description": "string"
    }
  ]
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/getMyCommands

Get commands

The current list.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyCommands'
Antwort
{
  "ok": true,
  "result": [
    {
      "command": "string",
      "description": "string"
    }
  ]
}
post/bot{token}/deleteMyCommands

Delete commands

Clears the list.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMyCommands'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/setMyMenu

Set the menu

The "Menu" button by the input field in a chat with the bot: a row sends "/command" as a regular message. At most 20 rows; replaces the previous list. No menu — the app shows the commands. The replacement for ReplyKeyboardMarkup.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

menuMenuButton[]erforderlich

Menu rows.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setMyMenu' \
  -H 'Content-Type: application/json' \
  -d '{
  "menu": [
    {
      "text": "string",
      "command": "string"
    }
  ]
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/getMyMenu

Get the menu

The current menu.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyMenu'
Antwort
{
  "ok": true,
  "result": [
    {
      "text": "string",
      "command": "string"
    }
  ]
}
post/bot{token}/deleteMyMenu

Delete the menu

Clears the menu.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMyMenu'
Antwort
{
  "ok": true,
  "result": true
}
Methoden

Sending

Sending messages of every kind. Any method works via GET or POST; POST with JSON is shown.

post/bot{token}/sendMessage

Send text

To a channel — a post (the bot must be an administrator allowed to post). To a private chat — only if the user started the bot.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
textstringerforderlich

Non-empty text; length limit as in the app (FAIL_MESSAGE_TOO_LONG).

parse_modestringoptional

HTML or MarkdownV2.

entitiesMessageEntity[]optional

Entities instead of parse_mode.

link_preview_optionsobjectoptional

{"is_disabled": true} — no link preview.

disable_web_page_previewbooleanoptional

Shorter form.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a photo

JPEG/PNG/GIF dimensions are detected automatically.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
photostringerforderlich

file_id, URL or upload.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a video

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
videostringerforderlich

file_id, URL or upload.

widthintegeroptional

Width.

heightintegeroptional

Height.

durationintegeroptional

Seconds.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send an animation

A silent looping video (GIF).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
animationstringerforderlich

file_id, URL or upload.

widthintegeroptional

Width.

heightintegeroptional

Height.

durationintegeroptional

Seconds.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send audio

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
audiostringerforderlich

file_id, URL or upload.

durationintegeroptional

Seconds.

titlestringoptional

Track title.

performerstringoptional

Performer.

file_namestringoptional

File name.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a document

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
documentstringerforderlich

file_id, URL or upload.

file_namestringoptional

File name.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a voice message

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
voicestringerforderlich

file_id, URL or upload.

durationintegeroptional

Seconds.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a video note

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
video_notestringerforderlich

file_id, URL or upload.

lengthintegeroptional

Side, pixels.

durationintegeroptional

Seconds.

captionstringoptional

Caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Caption entities instead of parse_mode.

has_spoilerbooleanoptional

Hide under a spoiler.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a sticker

A pack sticker by id — sticker.file_id from a received message.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
stickerstringerforderlich

Sticker id.

/^[0-9]+$/
reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send an album

Up to 10 items as one message. The album caption is the first non-empty one. Returns an array with one Message: an album is a single message in Blyk.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
mediaInputMedia[]erforderlich

1–10 items.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a location

With title — a venue (Message.venue).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
latitudenumbererforderlich

−90…90.

longitudenumbererforderlich

−180…180.

horizontal_accuracyintegeroptional

Accuracy, meters.

live_periodintegeroptional

Live period, seconds.

titlestringoptional

Venue title.

addressstringoptional

Address.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a dice

The server picks the value.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
emojistringoptional

Game emoji; a die by default.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Send a poll

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
questionstringerforderlich

Question.

optionsstring[]erforderlich

Options: strings or {text} objects.

is_anonymousbooleanoptional

Default true.

typestringoptional

regular or quiz.

allows_multiple_answersbooleanoptional

Multiple answers.

correct_option_idintegeroptional

quiz: zero-based correct option.

explanationstringoptional

quiz: explanation.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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"
          }
        ]
      ]
    }
  }
}
Methoden

Messages

Editing, deleting, forwarding, pinning, reactions.

post/bot{token}/editMessageText

Edit text

Own messages — always; other admins' channel posts — with the "edit posts" right. With reply_markup the buttons are replaced (an empty inline_keyboard removes them).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/
textstringerforderlich

New text.

parse_modestringoptional

HTML or MarkdownV2.

entitiesMessageEntity[]optional

Entities.

reply_markupInlineKeyboardMarkupoptional

New buttons.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
        }
      ]
    ]
  }
}'
Antwort
{
  "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

Edit caption

Like editMessageText with caption (+ caption_entities).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/
captionstringerforderlich

New caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Entities.

reply_markupInlineKeyboardMarkupoptional

New buttons.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
        }
      ]
    ]
  }
}'
Antwort
{
  "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

Edit buttons

Only the buttons of its own message; text and the "edited" mark are untouched. This is how a bot answers a press.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Absent or empty — remove the buttons.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
        }
      ]
    ]
  }
}'
Antwort
{
  "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

Delete a message

Own — always; in a private chat — any; others' in a group or channel — administrator with the delete right; in a server channel — with "Manage messages".

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/deleteMessages

Delete several

Up to 100. The first refusal stops the batch and is returned.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idsId[]erforderlich

1–100 ids.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMessages' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_ids": [
    "7349016627290112000"
  ]
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/forwardMessage

Forward

With a "forwarded from…" label (if the author allows it).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
from_chat_idstringerforderlich

Source chat (the bot must be in it).

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/
hide_authorsbooleanoptional

Without the label.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "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

Forward several

Returns only the id of the last forwarded message.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
from_chat_idstringerforderlich

Source chat.

/^[0-9]+$/
message_idsId[]erforderlich

1–100 ids.

hide_authorsbooleanoptional

Without the label.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": [
    {
      "message_id": "7349016627290112000"
    }
  ]
}
post/bot{token}/copyMessage

Copy

A new message with the same content, without "forwarded from". Service lines, notices, polls, checklists, dice and gifts cannot be copied.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
from_chat_idstringerforderlich

Source chat.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/
captionstringoptional

New caption.

parse_modestringoptional

HTML or MarkdownV2.

caption_entitiesMessageEntity[]optional

Entities.

reply_parametersReplyParametersoptional

Reply to a message in this chat.

reply_to_message_idstringoptional

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkupoptional

Buttons under the message.

disable_notificationbooleanoptional

Send silently.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": {
    "message_id": "7349016627290112000"
  }
}
post/bot{token}/pinChatMessage

Pin

In a group — with the pin right; in a channel — with the edit posts right.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/pinChatMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/unpinChatMessage

Unpin

Without message_id — the most recent pinned one.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringoptional

Which one.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unpinChatMessage' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/unpinAllChatMessages

Unpin all

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unpinAllChatMessages' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/setMessageReaction

Set reactions

The bot's reactions on the message become exactly these (empty — remove all).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstringerforderlich

Message id.

/^[0-9]+$/
reactionReactionType[]optional

type: emoji only.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
    }
  ]
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/sendChatAction

Chat action

Shown for 6 seconds or until the next message. Not shown in channels.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
actionstringerforderlich

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

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/sendChatAction' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "action": "string"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/answerCallbackQuery

Answer a callback query

Accepted for compatibility and returns true; the app does not show a popup yet. Answer with a message or editMessageReplyMarkup.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

callback_query_idstringerforderlich

CallbackQuery.id.

textstringoptional

Not shown.

show_alertbooleanoptional

Not shown.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/getFile

Get a file

A fresh signed URL (valid for 24 hours).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

file_idstringerforderlich

file_id.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getFile' \
  -H 'Content-Type: application/json' \
  -d '{
  "file_id": "string"
}'
Antwort
{
  "ok": true,
  "result": {
    "file_id": "string",
    "url": "string"
  }
}
Methoden

Chats

Chats and their members.

post/bot{token}/getChat

Get a chat

Only a chat the bot is in.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChat' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Antwort
{
  "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

Get a member

In a channel only an administrator sees others. In a server channel — a ServerMember.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Antwort
{
  "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

Administrators

Groups and channels; in a channel — if the bot is an administrator.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChatAdministrators' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Antwort
{
  "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

Member count

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getChatMemberCount' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": 0
}
post/bot{token}/banChatMember

Ban

Group/channel — administrator with the ban right; server channel — a server-wide ban (kick permission).

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/banChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/unbanChatMember

Unban

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/
only_if_bannedbooleanoptional

Do nothing if not banned.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/restrictChatMember

Restrict

A per-member rule in a group. All permissions true — the rule is removed.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/
permissionsChatPermissionserforderlich

What is allowed.

until_dateintegeroptional

Until, Unix seconds; 0 — forever.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/promoteChatMember

Promote

can_* rights; all false — demote. The bot cannot grant more than it has.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/
can_change_infobooleanoptional
can_delete_messagesbooleanoptional
can_restrict_membersbooleanoptional
can_invite_usersbooleanoptional
can_pin_messagesbooleanoptional
can_manage_video_chatsbooleanoptional
can_promote_membersbooleanoptional
can_post_messagesbooleanoptional
can_edit_messagesbooleanoptional

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/setChatPermissions

Set permissions

What regular group members may do.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/
permissionsChatPermissionserforderlich

Permissions.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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
  }
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/leaveChat

Leave

From a group or channel. From a server — leaveServer.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

chat_idstringerforderlich

Where: chat id, user id or @tag.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/leaveChat' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
Methoden

Servers

Servers.

post/bot{token}/getMyServers

My servers

Servers the bot is in.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyServers'
Antwort
{
  "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

Get a server

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServer' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Antwort
{
  "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

Server channels

Only those the bot can view through its roles.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerChannels' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Antwort
{
  "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

Server members

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
limitintegeroptional

1–1000, default 100.

offsetintegeroptional

Offset.

querystringoptional

Name search.

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
}'
Antwort
{
  "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

Server member

Not there — status left or banned.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Antwort
{
  "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

Roles

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerRoles' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": [
    {
      "id": "7349016627290112000",
      "name": "string",
      "color": 0,
      "permissions": 0,
      "position": 0,
      "hoist": true,
      "mentionable": true,
      "is_default": true
    }
  ]
}
post/bot{token}/addServerMemberRole

Add a role

Needs "Manage roles" and a role below the bot's own.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/
role_idstringerforderlich

Role.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/removeServerMemberRole

Remove a role

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/
role_idstringerforderlich

Role.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
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"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/kickServerMember

Kick

"Kick members"; only members below the bot.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/kickServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/banServerMember

Ban

Kick and keep out.

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/banServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/unbanServerMember

Unban

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/
user_idstringerforderlich

User id.

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unbanServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
post/bot{token}/leaveServer

Leave a server

Parameter

tokenstringerforderlichim Pfad

The bot token (BBAPITKN001: plus 32 characters). The path is /bot{token}/… or /bot/{token}/….

Request-Body application/json object

server_idstringerforderlich

Server id (the bot must be a member).

/^[0-9]+$/

Antworten

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

Anfrage
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/leaveServer' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
Antwort
{
  "ok": true,
  "result": true
}
Objekte

Objekte

Id

string

An id — a string of digits (a snowflake; does not fit in float64).

"7349016627290112000"

Date

integer (int64)

Unix seconds.

1760120000

OkTrue

object

Success with no data.

okbooleanerforderlich
true
resultbooleanerforderlich
true
{
  "ok": true,
  "result": true
}

Error

object

An error.

okbooleanerforderlich
false
error_codeintegererforderlich

Equals the HTTP status.

descriptionstringerforderlich

Explanation for the developer.

parametersobjectoptional

Details.

{
  "ok": false,
  "error_code": 0,
  "description": "string",
  "parameters": {
    "reason": "string",
    "vars": {},
    "retry_after": 0
  }
}

User

object

A user or a bot. A deleted user has only id, is_bot and is_deleted.

idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
is_botbooleanerforderlich

Whether this is a bot.

first_namestringoptional

Display name (Blyk has a single name).

usernamestringoptional

Tag without @.

avatar_urlstringoptional

Avatar, signed URL valid for 24 hours.

is_deletedbooleanoptional

The account is deleted.

can_join_groupsbooleanoptional

getMe only: always true.

can_read_all_group_messagesbooleanoptional

getMe only: always true — there is no privacy mode.

can_join_serversbooleanoptional

getMe only: always 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

A chat. id is the Blyk conversation id; pass it as chat_id.

idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
typestringerforderlich
privategroupchannelserver_channel
titlestringoptional

Title of the group, channel or server channel.

usernamestringoptional

Tag of the group/channel or of the peer.

first_namestringoptional

Private: the peer's name.

user_idstringoptional

Private: the peer's id.

/^[0-9]+$/
server_idstringoptional

Server channel: the server id.

/^[0-9]+$/
channel_typestringoptional

Server channel: kind.

textvoiceannouncementstage
topicstringoptional

getServerChannels only: channel topic.

positionintegeroptional

getServerChannels only: position.

category_idstringoptional

getServerChannels only: category.

/^[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
idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
typestringerforderlich
privategroupchannelserver_channel
titlestringoptional

Title of the group, channel or server channel.

usernamestringoptional

Tag of the group/channel or of the peer.

first_namestringoptional

Private: the peer's name.

user_idstringoptional

Private: the peer's id.

/^[0-9]+$/
server_idstringoptional

Server channel: the server id.

/^[0-9]+$/
channel_typestringoptional

Server channel: kind.

textvoiceannouncementstage
topicstringoptional

getServerChannels only: channel topic.

positionintegeroptional

getServerChannels only: position.

category_idstringoptional

getServerChannels only: category.

/^[0-9]+$/
descriptionstringoptional

Group/channel description or server channel topic.

biostringoptional

Private: the peer's bio.

avatar_urlstringoptional

Avatar, signed URL valid for 24 hours.

member_countintegeroptional

Members (2 in a private chat).

is_publicbooleanoptional

Public group/channel.

owner_idstringoptional

Group/channel owner.

/^[0-9]+$/
linked_chat_idstringoptional

Channel: its discussion group.

/^[0-9]+$/
slow_mode_delayintegeroptional

Slow mode, seconds.

permissionsChatPermissionsoptional

What a regular group member may do. Anything not named is forbidden.

serverServeroptional

A server.

has_protected_contentbooleanoptional

Copying is restricted.

created_dateinteger (int64)optional

Created at.

{
  "id": "7349016627290112000",
  "type": "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

What a regular group member may do. Anything not named is forbidden.

can_send_messagesbooleanoptional
can_send_photosbooleanoptional
can_send_videosbooleanoptional
can_send_documentsbooleanoptional
can_send_voice_notesbooleanoptional
can_send_video_notesbooleanoptional
can_send_other_messagesbooleanoptional
can_send_pollsbooleanoptional
can_add_reactionsbooleanoptional
can_invite_usersbooleanoptional
can_pin_messagesbooleanoptional
{
  "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

A group or channel member. can_* rights are on administrator (all of them on creator).

statusstringerforderlich
creatoradministratormemberrestrictedleftkickedbanned
userUsererforderlich

A user or a bot. A deleted user has only id, is_bot and is_deleted.

custom_titlestringoptional

Administrator title.

can_change_infobooleanoptional
can_delete_messagesbooleanoptional
can_restrict_membersbooleanoptional
can_invite_usersbooleanoptional
can_pin_messagesbooleanoptional
can_manage_video_chatsbooleanoptional
can_promote_membersbooleanoptional
can_post_messagesbooleanoptional
can_edit_messagesbooleanoptional
permissionsChatPermissionsoptional

What a regular group member may do. Anything not named is forbidden.

until_dateinteger (int64)optional

restricted: until when.

joined_dateinteger (int64)optional

Joined at.

{
  "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

A server.

idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
namestringerforderlich

Name.

usernamestringoptional

Tag.

descriptionstringoptional

Description.

avatar_urlstringoptional

Avatar.

member_countintegeroptional

Members.

owner_idIdoptional

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
is_publicbooleanoptional

Public.

{
  "id": "7349016627290112000",
  "name": "string",
  "username": "string",
  "description": "string",
  "avatar_url": "string",
  "member_count": 0,
  "owner_id": "7349016627290112000",
  "is_public": true
}

ServerMember

object

A server member.

statusstringerforderlich
creatormemberleftkickedbanned
userUsererforderlich

A user or a bot. A deleted user has only id, is_bot and is_deleted.

nicknamestringoptional

Server nickname.

rolesId[]optional
permissionsintegeroptional

Permission mask (see "Server permissions").

joined_dateDateoptional

Unix seconds.

{
  "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

A server role.

idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
namestringerforderlich
colorintegeroptional

0xRRGGBB

permissionsintegererforderlich

Permission mask.

positionintegererforderlich
hoistbooleanoptional
mentionablebooleanoptional
is_defaultbooleanoptional

@everyone

{
  "id": "7349016627290112000",
  "name": "string",
  "color": 0,
  "permissions": 0,
  "position": 0,
  "hoist": true,
  "mentionable": true,
  "is_default": true
}

Message

object

A message. Text with media arrives as caption.

message_idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
fromUseroptional

Author. Absent on channel posts.

sender_chatChatoptional

Channel post: the channel itself.

chatChaterforderlich

A chat. id is the Blyk conversation id; pass it as chat_id.

server_idstringoptional

Server channel: server id.

/^[0-9]+$/
dateDateerforderlich

Unix seconds.

edit_dateinteger (int64)optional

Edited at.

author_signaturestringoptional

Administrator signature on a post, if the channel signs posts.

forward_originMessageOriginoptional

Forward origin.

reply_to_messageMessageoptional

Replied message: id, author and text preview.

quoteobjectoptional

Reply quote.

textstringoptional
entitiesMessageEntity[]optional
captionstringoptional
caption_entitiesMessageEntity[]optional
has_media_spoilerbooleanoptional
photoPhotoSize[]optional
videoVideooptional

Video or animation.

animationVideooptional

Video or animation.

video_noteVideoNoteoptional

Video note.

voiceVoiceoptional

Voice message.

audioAudiooptional

Audio.

documentDocumentoptional

A file.

stickerStickeroptional

A sticker from a pack. file_id is the sticker id for sendSticker.

media_groupMediaItem[]optional

Album: all attachments when there is more than one (the first is also in its own field).

pollPolloptional

A poll.

locationLocationoptional

A point.

venueVenueoptional

A venue.

contactContactoptional

A contact.

diceDiceoptional

Dice: the server picks the value.

viewsintegeroptional

Post views.

is_pinnedbooleanoptional
reply_markupInlineKeyboardMarkupoptional

Buttons under a 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": {
        "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

Forward origin.

typestringerforderlich
userhidden_userchannel
sender_userUseroptional

A user or a bot. A deleted user has only id, is_bot and is_deleted.

sender_user_namestringoptional
chatChatoptional

A chat. id is the Blyk conversation id; pass it as 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

A formatted span; offset and length in UTF-16.

typestringerforderlich
bolditalicunderlinestrikethroughspoilercodepreblockquoteexpandable_blockquotetext_linkcustom_emoji
offsetintegererforderlich
lengthintegererforderlich
urlstringoptional
languagestringoptional
custom_emoji_idIdoptional

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
{
  "type": "bold",
  "offset": 0,
  "length": 0,
  "url": "string",
  "language": "string",
  "custom_emoji_id": "7349016627290112000"
}

PhotoSize

object

A photo (photo holds a single size).

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

widthintegeroptional

Width.

heightintegeroptional

Height.

urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "width": 0,
  "height": 0,
  "url": "string"
}

Video

object

Video or animation.

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

widthintegeroptional

Width.

heightintegeroptional

Height.

durationintegeroptional

Duration, seconds.

file_namestringoptional
urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "width": 0,
  "height": 0,
  "duration": 0,
  "file_name": "string",
  "url": "string"
}

VideoNote

object

Video note.

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

lengthintegeroptional

Side.

durationintegeroptional

Duration, seconds.

urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "length": 0,
  "duration": 0,
  "url": "string"
}

Voice

object

Voice message.

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

durationintegeroptional

Duration, seconds.

urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "duration": 0,
  "url": "string"
}

Audio

object

Audio.

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

durationintegeroptional

Duration, seconds.

titlestringoptional
performerstringoptional
file_namestringoptional
urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "duration": 0,
  "title": "string",
  "performer": "string",
  "file_name": "string",
  "url": "string"
}

Document

object

A file.

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

file_namestringoptional
file_size_labelstringoptional

Size as the app shows it ("12 KB").

urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "file_name": "string",
  "file_size_label": "string",
  "url": "string"
}

Sticker

object

A sticker from a pack. file_id is the sticker id for sendSticker.

file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

widthintegeroptional

Width.

heightintegeroptional

Height.

emojistringoptional
urlstringoptional

Signed download URL, valid for 24 hours.

{
  "file_id": "string",
  "width": 0,
  "height": 0,
  "emoji": "string",
  "url": "string"
}

MediaItem

object

An album item.

typestringerforderlich
photovideoanimationaudiovoicedocument
file_idstringerforderlich

Blyk file id — can be passed back to send* methods.

widthintegeroptional

Width.

heightintegeroptional

Height.

durationintegeroptional

Duration, seconds.

file_namestringoptional
urlstringoptional

Signed download URL, valid for 24 hours.

{
  "type": "photo",
  "file_id": "string",
  "width": 0,
  "height": 0,
  "duration": 0,
  "file_name": "string",
  "url": "string"
}

File

object

A file (getFile).

file_idstringerforderlich
urlstringerforderlich

Signed URL, valid for 24 hours.

{
  "file_id": "string",
  "url": "string"
}

Poll

object

A poll.

questionstringerforderlich
optionsobject[]erforderlich
total_voter_countintegererforderlich
is_closedbooleanoptional
is_anonymousbooleanerforderlich
typestringerforderlich
regularquiz
allows_multiple_answersbooleanoptional
explanationstringoptional
close_dateDateoptional

Unix seconds.

{
  "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

A point.

latitudenumbererforderlich
longitudenumbererforderlich
horizontal_accuracyintegeroptional
live_periodintegeroptional
headingintegeroptional
{
  "latitude": 0,
  "longitude": 0,
  "horizontal_accuracy": 0,
  "live_period": 0,
  "heading": 0
}

Venue

object

A venue.

locationLocationerforderlich

A point.

titlestringerforderlich
addressstringoptional
{
  "location": {
    "latitude": 0,
    "longitude": 0,
    "horizontal_accuracy": 0,
    "live_period": 0,
    "heading": 0
  },
  "title": "string",
  "address": "string"
}

Contact

object

A contact.

first_namestringerforderlich
usernamestringoptional
user_idIdoptional

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
{
  "first_name": "string",
  "username": "string",
  "user_id": "7349016627290112000"
}

Dice

object

Dice: the server picks the value.

emojistringerforderlich
valueintegererforderlich
{
  "emoji": "string",
  "value": 0
}

InlineKeyboardMarkup

object

Buttons under a message.

inline_keyboardInlineKeyboardButton[][]erforderlich
{
  "inline_keyboard": [
    [
      {
        "text": "string",
        "callback_data": "string"
      }
    ]
  ]
}

InlineKeyboardButton

object

A button. Callback only.

textstringerforderlich

1–64

callback_datastringerforderlich

1–64 bytes; returned in callback_query.data.

{
  "text": "string",
  "callback_data": "string"
}

ReactionType

object

A reaction. Only emoji is supported.

typestringerforderlich
emoji
emojistringoptional
{
  "type": "emoji",
  "emoji": "string"
}

BotCommand

object

A command: command is [a-z0-9_]{1,32} (leading / stripped, unique), description 1–256 characters.

commandstringerforderlich
descriptionstringerforderlich
{
  "command": "string",
  "description": "string"
}

MenuButton

object

A menu row: text 1–32 characters, command [a-z0-9_]{1,32}.

textstringerforderlich
commandstringerforderlich
{
  "text": "string",
  "command": "string"
}

WebhookInfo

object

Webhook state.

urlstringerforderlich

Empty — no webhook.

has_custom_certificatebooleanerforderlich

Always false.

pending_update_countintegererforderlich
last_error_dateDateoptional

Unix seconds.

last_error_messagestringoptional
max_connectionsintegeroptional
allowed_updatesstring[]optional
{
  "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

A sendMediaGroup item.

typestringerforderlich
photovideoaudiodocument
mediastringerforderlich

file_id, an http(s) URL or attach://.

captionstringoptional
parse_modestringoptional
caption_entitiesMessageEntity[]optional
widthintegeroptional
heightintegeroptional
durationintegeroptional
titlestringoptional
performerstringoptional
has_spoilerbooleanoptional
{
  "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

What to reply to (in the same chat).

message_idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
quotestringoptional

A fragment of the original text.

quote_positionintegeroptional

Where it starts, UTF-16.

{
  "message_id": "7349016627290112000",
  "quote": "string",
  "quote_position": 0
}

MessageIdResult

object
message_idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
{
  "message_id": "7349016627290112000"
}

Update

object

An update. Exactly one field besides update_id.

update_idinteger (int64)erforderlich

Update number; next offset = update_id + 1.

messageMessageoptional

A new message in a private chat, group or server channel (including /start, /stop, menu commands).

edited_messageMessageoptional

A message was edited.

channel_postMessageoptional

A channel post.

edited_channel_postMessageoptional

A channel post was edited.

callback_queryCallbackQueryoptional

A button under the bot's message was pressed.

message_reactionMessageReactionUpdatedoptional

A reaction was added or removed. old/new hold only the changed one. No user in channels.

deleted_messageMessageDeletedoptional

A message was deleted.

chat_clearedChatClearedoptional

A user cleared their chat with the bot on their side.

my_chat_memberChatMemberUpdatedoptional

The bot was added, removed, banned, promoted or demoted in a group or channel.

my_server_memberServerMemberUpdatedoptional

The same for a server: added, kicked, banned, left, roles changed, server deleted.

{
  "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

A button under the bot's message was pressed.

idstringerforderlich

Press id (for answerCallbackQuery).

fromUsererforderlich

A user or a bot. A deleted user has only id, is_bot and is_deleted.

messageMessageoptional

A message. Text with media arrives as caption.

datastringerforderlich

The button's callback_data.

button_textstringoptional

Button text.

button_rowintegererforderlich

Row, zero-based.

button_columnintegererforderlich

Column, zero-based.

chat_instancestringoptional

Chat 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

A reaction was added or removed. old/new hold only the changed one. No user in channels.

chatChaterforderlich

A chat. id is the Blyk conversation id; pass it as chat_id.

server_idIdoptional

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
message_idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
userUseroptional

A user or a bot. A deleted user has only id, is_bot and is_deleted.

dateDateerforderlich

Unix seconds.

old_reactionReactionType[]erforderlich
new_reactionReactionType[]erforderlich
{
  "chat": {
    "id": "7349016627290112000",
    "type": "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

A message was deleted.

chatChaterforderlich

A chat. id is the Blyk conversation id; pass it as chat_id.

server_idIdoptional

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
message_idIderforderlich

An id — a string of digits (a snowflake; does not fit in float64).

/^[0-9]+$/
fromUseroptional

Who deleted it.

dateDateerforderlich

Unix seconds.

{
  "chat": {
    "id": "7349016627290112000",
    "type": "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

A user cleared their chat with the bot on their side.

chatChaterforderlich

A chat. id is the Blyk conversation id; pass it as chat_id.

fromUsererforderlich

A user or a bot. A deleted user has only id, is_bot and is_deleted.

dateDateerforderlich

Unix seconds.

{
  "chat": {
    "id": "7349016627290112000",
    "type": "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

The bot was added, removed, banned, promoted or demoted in a group or channel.

chatChaterforderlich

A chat. id is the Blyk conversation id; pass it as chat_id.

fromUsererforderlich

Who did it (the bot itself if it left).

dateDateerforderlich

Unix seconds.

old_chat_memberChatMembererforderlich

A group or channel member. can_* rights are on administrator (all of them on creator).

new_chat_memberChatMembererforderlich

A group or channel member. can_* rights are on administrator (all of them on 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

The same for a server: added, kicked, banned, left, roles changed, server deleted.

serverServererforderlich

A server.

fromUsererforderlich

A user or a bot. A deleted user has only id, is_bot and is_deleted.

dateDateerforderlich

Unix seconds.

old_server_memberServerMembererforderlich

A server member.

new_server_memberServerMembererforderlich

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

Die Dokumentation gibt es auf Russisch und Englisch.