Tham chiếu
bot.token_rotated — Token bot được thay
Token của bot bị thu hồi và thay mới; token cũ hết dùng được. Đọc lại đúng token cũ thì không tính.
Xem MarkdownTrang này sinh tự động từ mã nguồn mỗi lần phát hành.
Token của bot bị thu hồi và thay mới; token cũ hết dùng được. Đọc lại đúng token cũ thì không tính.
Từ bản web 2.1.0, máy chạy —.
| Tên | Giá trị |
|---|---|
| Mã | bot.token_rotated |
| Nhóm | Bot |
| Trạng thái | Đăng ký được |
| Scope cần để nhận | accounts.read |
| Gắn với một tài khoản | Có |
| Chỉ kết nối gây ra sự kiện mới nhận | Không |
| Bộ lọc áp dụng | — |
Trường bị bỏ ở chế độ nội dung thin |
bot.name |
| Trường do người ngoài viết (không tin cậy) | bot.name |
JSON Schema
https://tlg.builera.app/schemas/events/bot.token_rotated/2.json
Payload mẫu (đúng như webhooks.test gửi)
{
"specversion": "1.0",
"id": "evt_01JDOCSSAMPLE",
"source": "https://tlg.builera.app/ws/07c2e5e1-c42f-4212-851b-c55b6dd7989d",
"type": "bot.token_rotated",
"time": "2026-10-21T13:45:00.123Z",
"datacontenttype": "application/json",
"dataschema": "https://tlg.builera.app/schemas/events/bot.token_rotated/2.json",
"platform": "telegram",
"workspaceid": "07c2e5e1-c42f-4212-851b-c55b6dd7989d",
"accountid": "1a7d2c40-5b1e-4e7a-9d3f-6c2b8e1f0a11",
"seq": "000000000000000",
"schemaversion": "2",
"correlationid": null,
"causationid": null,
"test": true,
"replay": false,
"data": {
"account": {
"id": "1a7d2c40-5b1e-4e7a-9d3f-6c2b8e1f0a11",
"label": "Sale 1",
"username": "sale_demo_1",
"tg_user_id": "100200300"
},
"bot": {
"id": "8e0a2c4e-6a8c-4e0a-9c2e-4a6c8e0a2c4e",
"tg_bot_id": "7012345678",
"username": "shop_demo_bot",
"name": "Shop Demo"
},
"job_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"token_revision": 2,
"untrusted_fields": [
"bot.name"
]
}
}