Blyk

开发者

Bot API 与“使用 Blyk 登录”(OAuth 2.0)的文档。

Blyk Bot API版本 2.0.0

Bot API

机器人是带有令牌的 Blyk 账号。在应用中创建:“我” → “开发” → “机器人”,然后通过 HTTP 调用其方法。

  1. 在应用中创建机器人
  2. 复制令牌
  3. {BASE}/bot/{TOKEN}/{method}
基础地址https://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.
方法

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.

参数

tokenstring必填路径中

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

请求体 application/json object

offsetinteger可选

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

limitinteger可选

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

timeoutinteger可选

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

allowed_updatesstring[]可选

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

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.

参数

tokenstring必填路径中

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

请求体 application/json object

urlstring必填

An https URL on the public internet.

secret_tokenstring可选

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

max_connectionsinteger可选

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

allowed_updatesstring[]可选

As in getUpdates.

drop_pending_updatesboolean可选

Drop all pending updates.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setWebhook' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "string",
  "secret_token": "string",
  "max_connections": 0,
  "allowed_updates": [
    "string"
  ],
  "drop_pending_updates": true
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/deleteWebhook

Delete the webhook

Updates go back to getUpdates.

参数

tokenstring必填路径中

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

请求体 application/json object

drop_pending_updatesboolean可选

Drop all pending updates.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Webhook info

URL, pending update count, last delivery error.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getWebhookInfo'
响应
{
  "ok": true,
  "result": {
    "url": "string",
    "has_custom_certificate": true,
    "pending_update_count": 0,
    "last_error_date": 1760120000,
    "last_error_message": "string",
    "max_connections": 0,
    "allowed_updates": [
      "string"
    ]
  }
}
方法

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.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMe'
响应
{
  "ok": true,
  "result": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  }
}
post/bot{token}/setMyCommands

Set commands

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

参数

tokenstring必填路径中

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

请求体 application/json object

commandsBotCommand[]必填

Commands.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Get commands

The current list.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Delete commands

Clears the list.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMyCommands'
响应
{
  "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.

参数

tokenstring必填路径中

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

请求体 application/json object

menuMenuButton[]必填

Menu rows.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Get the menu

The current menu.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Delete the menu

Clears the menu.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/deleteMyMenu'
响应
{
  "ok": true,
  "result": true
}
方法

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.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
textstring必填

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

parse_modestring可选

HTML or MarkdownV2.

entitiesMessageEntity[]可选

Entities instead of parse_mode.

link_preview_optionsobject可选

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

disable_web_page_previewboolean可选

Shorter form.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a photo

JPEG/PNG/GIF dimensions are detected automatically.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
photostring必填

file_id, URL or upload.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a video

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
videostring必填

file_id, URL or upload.

widthinteger可选

Width.

heightinteger可选

Height.

durationinteger可选

Seconds.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send an animation

A silent looping video (GIF).

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
animationstring必填

file_id, URL or upload.

widthinteger可选

Width.

heightinteger可选

Height.

durationinteger可选

Seconds.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send audio

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
audiostring必填

file_id, URL or upload.

durationinteger可选

Seconds.

titlestring可选

Track title.

performerstring可选

Performer.

file_namestring可选

File name.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a document

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
documentstring必填

file_id, URL or upload.

file_namestring可选

File name.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a voice message

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
voicestring必填

file_id, URL or upload.

durationinteger可选

Seconds.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a video note

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
video_notestring必填

file_id, URL or upload.

lengthinteger可选

Side, pixels.

durationinteger可选

Seconds.

captionstring可选

Caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Caption entities instead of parse_mode.

has_spoilerboolean可选

Hide under a spoiler.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a sticker

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
stickerstring必填

Sticker id.

/^[0-9]+$/
reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

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.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
mediaInputMedia[]必填

1–10 items.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a location

With title — a venue (Message.venue).

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
latitudenumber必填

−90…90.

longitudenumber必填

−180…180.

horizontal_accuracyinteger可选

Accuracy, meters.

live_periodinteger可选

Live period, seconds.

titlestring可选

Venue title.

addressstring可选

Address.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a dice

The server picks the value.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
emojistring可选

Game emoji; a die by default.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Send a poll

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
questionstring必填

Question.

optionsstring[]必填

Options: strings or {text} objects.

is_anonymousboolean可选

Default true.

typestring可选

regular or quiz.

allows_multiple_answersboolean可选

Multiple answers.

correct_option_idinteger可选

quiz: zero-based correct option.

explanationstring可选

quiz: explanation.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

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).

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/
textstring必填

New text.

parse_modestring可选

HTML or MarkdownV2.

entitiesMessageEntity[]可选

Entities.

reply_markupInlineKeyboardMarkup可选

New buttons.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Edit caption

Like editMessageText with caption (+ caption_entities).

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/
captionstring必填

New caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Entities.

reply_markupInlineKeyboardMarkup可选

New buttons.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Edit buttons

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Absent or empty — remove the buttons.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Delete several

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idsId[]必填

1–100 ids.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Forward

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
from_chat_idstring必填

Source chat (the bot must be in it).

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/
hide_authorsboolean可选

Without the label.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Forward several

Returns only the id of the last forwarded message.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
from_chat_idstring必填

Source chat.

/^[0-9]+$/
message_idsId[]必填

1–100 ids.

hide_authorsboolean可选

Without the label.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/forwardMessages' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "from_chat_id": "7349016627290112000",
  "message_ids": [
    "7349016627290112000"
  ],
  "hide_authors": true
}'
响应
{
  "ok": true,
  "result": [
    {
      "message_id": "7349016627290112000"
    }
  ]
}
post/bot{token}/copyMessage

Copy

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
from_chat_idstring必填

Source chat.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/
captionstring可选

New caption.

parse_modestring可选

HTML or MarkdownV2.

caption_entitiesMessageEntity[]可选

Entities.

reply_parametersReplyParameters可选

Reply to a message in this chat.

reply_to_message_idstring可选

Shorter form (deprecated, still accepted).

/^[0-9]+$/
reply_markupInlineKeyboardMarkup可选

Buttons under the message.

disable_notificationboolean可选

Send silently.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Pin

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Unpin

Without message_id — the most recent pinned one.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring可选

Which one.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Unpin all

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Set reactions

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
message_idstring必填

Message id.

/^[0-9]+$/
reactionReactionType[]可选

type: emoji only.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setMessageReaction' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "reaction": [
    {
      "type": "emoji",
      "emoji": "string"
    }
  ]
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/sendChatAction

Chat action

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
actionstring必填

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Answer a callback query

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

参数

tokenstring必填路径中

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

请求体 application/json object

callback_query_idstring必填

CallbackQuery.id.

textstring可选

Not shown.

show_alertboolean可选

Not shown.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/answerCallbackQuery' \
  -H 'Content-Type: application/json' \
  -d '{
  "callback_query_id": "string",
  "text": "string",
  "show_alert": true
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/getFile

Get a file

A fresh signed URL (valid for 24 hours).

参数

tokenstring必填路径中

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

请求体 application/json object

file_idstring必填

file_id.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getFile' \
  -H 'Content-Type: application/json' \
  -d '{
  "file_id": "string"
}'
响应
{
  "ok": true,
  "result": {
    "file_id": "string",
    "url": "string"
  }
}
方法

Chats

Chats and their members.

post/bot{token}/getChat

Get a chat

Only a chat the bot is in.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Get a member

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Administrators

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Member count

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Ban

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Unban

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/
only_if_bannedboolean可选

Do nothing if not banned.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/unbanChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "only_if_banned": true
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/restrictChatMember

Restrict

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/
permissionsChatPermissions必填

What is allowed.

until_dateinteger可选

Until, Unix seconds; 0 — forever.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/restrictChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "permissions": {
    "can_send_messages": true,
    "can_send_photos": true,
    "can_send_videos": true,
    "can_send_documents": true,
    "can_send_voice_notes": true,
    "can_send_video_notes": true,
    "can_send_other_messages": true,
    "can_send_polls": true,
    "can_add_reactions": true,
    "can_invite_users": true,
    "can_pin_messages": true
  },
  "until_date": 0
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/promoteChatMember

Promote

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/
can_change_infoboolean可选
can_delete_messagesboolean可选
can_restrict_membersboolean可选
can_invite_usersboolean可选
can_pin_messagesboolean可选
can_manage_video_chatsboolean可选
can_promote_membersboolean可选
can_post_messagesboolean可选
can_edit_messagesboolean可选

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/promoteChatMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "can_change_info": true,
  "can_delete_messages": true,
  "can_restrict_members": true,
  "can_invite_users": true,
  "can_pin_messages": true,
  "can_manage_video_chats": true,
  "can_promote_members": true,
  "can_post_messages": true,
  "can_edit_messages": true
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/setChatPermissions

Set permissions

What regular group members may do.

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/
permissionsChatPermissions必填

Permissions.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/setChatPermissions' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000",
  "permissions": {
    "can_send_messages": true,
    "can_send_photos": true,
    "can_send_videos": true,
    "can_send_documents": true,
    "can_send_voice_notes": true,
    "can_send_video_notes": true,
    "can_send_other_messages": true,
    "can_send_polls": true,
    "can_add_reactions": true,
    "can_invite_users": true,
    "can_pin_messages": true
  }
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/leaveChat

Leave

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

参数

tokenstring必填路径中

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

请求体 application/json object

chat_idstring必填

Where: chat id, user id or @tag.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/leaveChat' \
  -H 'Content-Type: application/json' \
  -d '{
  "chat_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": true
}
方法

Servers

Servers.

post/bot{token}/getMyServers

My servers

Servers the bot is in.

参数

tokenstring必填路径中

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

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getMyServers'
响应
{
  "ok": true,
  "result": [
    {
      "id": "7349016627290112000",
      "name": "string",
      "username": "string",
      "description": "string",
      "avatar_url": "string",
      "member_count": 0,
      "owner_id": "7349016627290112000",
      "is_public": true
    }
  ]
}
post/bot{token}/getServer

Get a server

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServer' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": {
    "id": "7349016627290112000",
    "name": "string",
    "username": "string",
    "description": "string",
    "avatar_url": "string",
    "member_count": 0,
    "owner_id": "7349016627290112000",
    "is_public": true
  }
}
post/bot{token}/getServerChannels

Server channels

Only those the bot can view through its roles.

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerChannels' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": [
    {
      "id": "7349016627290112000",
      "type": "private",
      "title": "string",
      "username": "string",
      "first_name": "string",
      "user_id": "7349016627290112000",
      "server_id": "7349016627290112000",
      "channel_type": "text",
      "topic": "string",
      "position": 0,
      "category_id": "7349016627290112000"
    }
  ]
}
post/bot{token}/getServerMembers

Server members

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
limitinteger可选

1–1000, default 100.

offsetinteger可选

Offset.

querystring可选

Name search.

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerMembers' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "limit": 0,
  "offset": 0,
  "query": "string"
}'
响应
{
  "ok": true,
  "result": [
    {
      "status": "creator",
      "user": {
        "id": "7349016627290112000",
        "is_bot": true,
        "first_name": "string",
        "username": "string",
        "avatar_url": "string",
        "is_deleted": true,
        "can_join_groups": true,
        "can_read_all_group_messages": true,
        "can_join_servers": true
      },
      "nickname": "string",
      "roles": [
        "7349016627290112000"
      ],
      "permissions": 0,
      "joined_date": 1760120000
    }
  ]
}
post/bot{token}/getServerMember

Server member

Not there — status left or banned.

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/getServerMember' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": {
    "status": "creator",
    "user": {
      "id": "7349016627290112000",
      "is_bot": true,
      "first_name": "string",
      "username": "string",
      "avatar_url": "string",
      "is_deleted": true,
      "can_join_groups": true,
      "can_read_all_group_messages": true,
      "can_join_servers": true
    },
    "nickname": "string",
    "roles": [
      "7349016627290112000"
    ],
    "permissions": 0,
    "joined_date": 1760120000
  }
}
post/bot{token}/getServerRoles

Roles

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Add a role

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

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/
role_idstring必填

Role.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/addServerMemberRole' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "role_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/removeServerMemberRole

Remove a role

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/
role_idstring必填

Role.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/removeServerMemberRole' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000",
  "user_id": "7349016627290112000",
  "role_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": true
}
post/bot{token}/kickServerMember

Kick

"Kick members"; only members below the bot.

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Ban

Kick and keep out.

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Unban

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/
user_idstring必填

User id.

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

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

Leave a server

参数

tokenstring必填路径中

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

请求体 application/json object

server_idstring必填

Server id (the bot must be a member).

/^[0-9]+$/

响应

200
object

Success.

default
Error

Error (see "Errors" in the introduction).

请求
curl -X POST 'https://gateway.blyk.chat/botBBAPITKN001:abcdefghijklmnopqrstuvwxyz012345/leaveServer' \
  -H 'Content-Type: application/json' \
  -d '{
  "server_id": "7349016627290112000"
}'
响应
{
  "ok": true,
  "result": true
}
对象

对象

Id

string

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.

okboolean必填
true
resultboolean必填
true
{
  "ok": true,
  "result": true
}

Error

object

An error.

okboolean必填
false
error_codeinteger必填

Equals the HTTP status.

descriptionstring必填

Explanation for the developer.

parametersobject可选

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.

idId必填

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

/^[0-9]+$/
is_botboolean必填

Whether this is a bot.

first_namestring可选

Display name (Blyk has a single name).

usernamestring可选

Tag without @.

avatar_urlstring可选

Avatar, signed URL valid for 24 hours.

is_deletedboolean可选

The account is deleted.

can_join_groupsboolean可选

getMe only: always true.

can_read_all_group_messagesboolean可选

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

can_join_serversboolean可选

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.

idId必填

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

/^[0-9]+$/
typestring必填
privategroupchannelserver_channel
titlestring可选

Title of the group, channel or server channel.

usernamestring可选

Tag of the group/channel or of the peer.

first_namestring可选

Private: the peer's name.

user_idstring可选

Private: the peer's id.

/^[0-9]+$/
server_idstring可选

Server channel: the server id.

/^[0-9]+$/
channel_typestring可选

Server channel: kind.

textvoiceannouncementstage
topicstring可选

getServerChannels only: channel topic.

positioninteger可选

getServerChannels only: position.

category_idstring可选

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
idId必填

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

/^[0-9]+$/
typestring必填
privategroupchannelserver_channel
titlestring可选

Title of the group, channel or server channel.

usernamestring可选

Tag of the group/channel or of the peer.

first_namestring可选

Private: the peer's name.

user_idstring可选

Private: the peer's id.

/^[0-9]+$/
server_idstring可选

Server channel: the server id.

/^[0-9]+$/
channel_typestring可选

Server channel: kind.

textvoiceannouncementstage
topicstring可选

getServerChannels only: channel topic.

positioninteger可选

getServerChannels only: position.

category_idstring可选

getServerChannels only: category.

/^[0-9]+$/
descriptionstring可选

Group/channel description or server channel topic.

biostring可选

Private: the peer's bio.

avatar_urlstring可选

Avatar, signed URL valid for 24 hours.

member_countinteger可选

Members (2 in a private chat).

is_publicboolean可选

Public group/channel.

owner_idstring可选

Group/channel owner.

/^[0-9]+$/
linked_chat_idstring可选

Channel: its discussion group.

/^[0-9]+$/
slow_mode_delayinteger可选

Slow mode, seconds.

permissionsChatPermissions可选

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

serverServer可选

A server.

has_protected_contentboolean可选

Copying is restricted.

created_dateinteger (int64)可选

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_messagesboolean可选
can_send_photosboolean可选
can_send_videosboolean可选
can_send_documentsboolean可选
can_send_voice_notesboolean可选
can_send_video_notesboolean可选
can_send_other_messagesboolean可选
can_send_pollsboolean可选
can_add_reactionsboolean可选
can_invite_usersboolean可选
can_pin_messagesboolean可选
{
  "can_send_messages": true,
  "can_send_photos": true,
  "can_send_videos": true,
  "can_send_documents": true,
  "can_send_voice_notes": true,
  "can_send_video_notes": true,
  "can_send_other_messages": true,
  "can_send_polls": true,
  "can_add_reactions": true,
  "can_invite_users": true,
  "can_pin_messages": true
}

ChatMember

object

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

statusstring必填
creatoradministratormemberrestrictedleftkickedbanned
userUser必填

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

custom_titlestring可选

Administrator title.

can_change_infoboolean可选
can_delete_messagesboolean可选
can_restrict_membersboolean可选
can_invite_usersboolean可选
can_pin_messagesboolean可选
can_manage_video_chatsboolean可选
can_promote_membersboolean可选
can_post_messagesboolean可选
can_edit_messagesboolean可选
permissionsChatPermissions可选

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

until_dateinteger (int64)可选

restricted: until when.

joined_dateinteger (int64)可选

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.

idId必填

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

/^[0-9]+$/
namestring必填

Name.

usernamestring可选

Tag.

descriptionstring可选

Description.

avatar_urlstring可选

Avatar.

member_countinteger可选

Members.

owner_idId可选

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

/^[0-9]+$/
is_publicboolean可选

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.

statusstring必填
creatormemberleftkickedbanned
userUser必填

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

nicknamestring可选

Server nickname.

rolesId[]可选
permissionsinteger可选

Permission mask (see "Server permissions").

joined_dateDate可选

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.

idId必填

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

/^[0-9]+$/
namestring必填
colorinteger可选

0xRRGGBB

permissionsinteger必填

Permission mask.

positioninteger必填
hoistboolean可选
mentionableboolean可选
is_defaultboolean可选

@everyone

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

Message

object

A message. Text with media arrives as caption.

message_idId必填

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

/^[0-9]+$/
fromUser可选

Author. Absent on channel posts.

sender_chatChat可选

Channel post: the channel itself.

chatChat必填

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

server_idstring可选

Server channel: server id.

/^[0-9]+$/
dateDate必填

Unix seconds.

edit_dateinteger (int64)可选

Edited at.

author_signaturestring可选

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

forward_originMessageOrigin可选

Forward origin.

reply_to_messageMessage可选

Replied message: id, author and text preview.

quoteobject可选

Reply quote.

textstring可选
entitiesMessageEntity[]可选
captionstring可选
caption_entitiesMessageEntity[]可选
has_media_spoilerboolean可选
photoPhotoSize[]可选
videoVideo可选

Video or animation.

animationVideo可选

Video or animation.

video_noteVideoNote可选

Video note.

voiceVoice可选

Voice message.

audioAudio可选

Audio.

documentDocument可选

A file.

stickerSticker可选

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

media_groupMediaItem[]可选

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

pollPoll可选

A poll.

locationLocation可选

A point.

venueVenue可选

A venue.

contactContact可选

A contact.

diceDice可选

Dice: the server picks the value.

viewsinteger可选

Post views.

is_pinnedboolean可选
reply_markupInlineKeyboardMarkup可选

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.

typestring必填
userhidden_userchannel
sender_userUser可选

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

sender_user_namestring可选
chatChat可选

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.

typestring必填
bolditalicunderlinestrikethroughspoilercodepreblockquoteexpandable_blockquotetext_linkcustom_emoji
offsetinteger必填
lengthinteger必填
urlstring可选
languagestring可选
custom_emoji_idId可选

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_idstring必填

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

widthinteger可选

Width.

heightinteger可选

Height.

urlstring可选

Signed download URL, valid for 24 hours.

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

Video

object

Video or animation.

file_idstring必填

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

widthinteger可选

Width.

heightinteger可选

Height.

durationinteger可选

Duration, seconds.

file_namestring可选
urlstring可选

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_idstring必填

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

lengthinteger可选

Side.

durationinteger可选

Duration, seconds.

urlstring可选

Signed download URL, valid for 24 hours.

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

Voice

object

Voice message.

file_idstring必填

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

durationinteger可选

Duration, seconds.

urlstring可选

Signed download URL, valid for 24 hours.

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

Audio

object

Audio.

file_idstring必填

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

durationinteger可选

Duration, seconds.

titlestring可选
performerstring可选
file_namestring可选
urlstring可选

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_idstring必填

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

file_namestring可选
file_size_labelstring可选

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

urlstring可选

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_idstring必填

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

widthinteger可选

Width.

heightinteger可选

Height.

emojistring可选
urlstring可选

Signed download URL, valid for 24 hours.

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

MediaItem

object

An album item.

typestring必填
photovideoanimationaudiovoicedocument
file_idstring必填

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

widthinteger可选

Width.

heightinteger可选

Height.

durationinteger可选

Duration, seconds.

file_namestring可选
urlstring可选

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_idstring必填
urlstring必填

Signed URL, valid for 24 hours.

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

Poll

object

A poll.

questionstring必填
optionsobject[]必填
total_voter_countinteger必填
is_closedboolean可选
is_anonymousboolean必填
typestring必填
regularquiz
allows_multiple_answersboolean可选
explanationstring可选
close_dateDate可选

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.

latitudenumber必填
longitudenumber必填
horizontal_accuracyinteger可选
live_periodinteger可选
headinginteger可选
{
  "latitude": 0,
  "longitude": 0,
  "horizontal_accuracy": 0,
  "live_period": 0,
  "heading": 0
}

Venue

object

A venue.

locationLocation必填

A point.

titlestring必填
addressstring可选
{
  "location": {
    "latitude": 0,
    "longitude": 0,
    "horizontal_accuracy": 0,
    "live_period": 0,
    "heading": 0
  },
  "title": "string",
  "address": "string"
}

Contact

object

A contact.

first_namestring必填
usernamestring可选
user_idId可选

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.

emojistring必填
valueinteger必填
{
  "emoji": "string",
  "value": 0
}

InlineKeyboardMarkup

object

Buttons under a message.

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

InlineKeyboardButton

object

A button. Callback only.

textstring必填

1–64

callback_datastring必填

1–64 bytes; returned in callback_query.data.

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

ReactionType

object

A reaction. Only emoji is supported.

typestring必填
emoji
emojistring可选
{
  "type": "emoji",
  "emoji": "string"
}

BotCommand

object

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

commandstring必填
descriptionstring必填
{
  "command": "string",
  "description": "string"
}

MenuButton

object

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

textstring必填
commandstring必填
{
  "text": "string",
  "command": "string"
}

WebhookInfo

object

Webhook state.

urlstring必填

Empty — no webhook.

has_custom_certificateboolean必填

Always false.

pending_update_countinteger必填
last_error_dateDate可选

Unix seconds.

last_error_messagestring可选
max_connectionsinteger可选
allowed_updatesstring[]可选
{
  "url": "string",
  "has_custom_certificate": true,
  "pending_update_count": 0,
  "last_error_date": 1760120000,
  "last_error_message": "string",
  "max_connections": 0,
  "allowed_updates": [
    "string"
  ]
}

InputMedia

object

A sendMediaGroup item.

typestring必填
photovideoaudiodocument
mediastring必填

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

captionstring可选
parse_modestring可选
caption_entitiesMessageEntity[]可选
widthinteger可选
heightinteger可选
durationinteger可选
titlestring可选
performerstring可选
has_spoilerboolean可选
{
  "type": "photo",
  "media": "string",
  "caption": "string",
  "parse_mode": "string",
  "caption_entities": [
    {
      "type": "bold",
      "offset": 0,
      "length": 0,
      "url": "string",
      "language": "string",
      "custom_emoji_id": "7349016627290112000"
    }
  ],
  "width": 0,
  "height": 0,
  "duration": 0,
  "title": "string",
  "performer": "string",
  "has_spoiler": true
}

ReplyParameters

object

What to reply to (in the same chat).

message_idId必填

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

/^[0-9]+$/
quotestring可选

A fragment of the original text.

quote_positioninteger可选

Where it starts, UTF-16.

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

MessageIdResult

object
message_idId必填

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)必填

Update number; next offset = update_id + 1.

messageMessage可选

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

edited_messageMessage可选

A message was edited.

channel_postMessage可选

A channel post.

edited_channel_postMessage可选

A channel post was edited.

callback_queryCallbackQuery可选

A button under the bot's message was pressed.

message_reactionMessageReactionUpdated可选

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

deleted_messageMessageDeleted可选

A message was deleted.

chat_clearedChatCleared可选

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

my_chat_memberChatMemberUpdated可选

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

my_server_memberServerMemberUpdated可选

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.

idstring必填

Press id (for answerCallbackQuery).

fromUser必填

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

messageMessage可选

A message. Text with media arrives as caption.

datastring必填

The button's callback_data.

button_textstring可选

Button text.

button_rowinteger必填

Row, zero-based.

button_columninteger必填

Column, zero-based.

chat_instancestring可选

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.

chatChat必填

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

server_idId可选

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

/^[0-9]+$/
message_idId必填

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

/^[0-9]+$/
userUser可选

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

dateDate必填

Unix seconds.

old_reactionReactionType[]必填
new_reactionReactionType[]必填
{
  "chat": {
    "id": "7349016627290112000",
    "type": "private",
    "title": "string",
    "username": "string",
    "first_name": "string",
    "user_id": "7349016627290112000",
    "server_id": "7349016627290112000",
    "channel_type": "text",
    "topic": "string",
    "position": 0,
    "category_id": "7349016627290112000"
  },
  "server_id": "7349016627290112000",
  "message_id": "7349016627290112000",
  "user": {
    "id": "7349016627290112000",
    "is_bot": true,
    "first_name": "string",
    "username": "string",
    "avatar_url": "string",
    "is_deleted": true,
    "can_join_groups": true,
    "can_read_all_group_messages": true,
    "can_join_servers": true
  },
  "date": 1760120000,
  "old_reaction": [
    {
      "type": "emoji",
      "emoji": "string"
    }
  ],
  "new_reaction": [
    {
      "type": "emoji",
      "emoji": "string"
    }
  ]
}

MessageDeleted

object

A message was deleted.

chatChat必填

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

server_idId可选

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

/^[0-9]+$/
message_idId必填

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

/^[0-9]+$/
fromUser可选

Who deleted it.

dateDate必填

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.

chatChat必填

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

fromUser必填

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

dateDate必填

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.

chatChat必填

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

fromUser必填

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

dateDate必填

Unix seconds.

old_chat_memberChatMember必填

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

new_chat_memberChatMember必填

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.

serverServer必填

A server.

fromUser必填

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

dateDate必填

Unix seconds.

old_server_memberServerMember必填

A server member.

new_server_memberServerMember必填

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

文档提供俄语和英语版本。