Tài liệu

Tham chiếu

message.sent — Tin đã gửi đi

Tin ra đã được Telegram xác nhận (từ app, API, MCP, chiến dịch, luật hay điện thoại).

Xem MarkdownTrang này sinh tự động từ mã nguồn mỗi lần phát hành.

Tin ra đã được Telegram xác nhận (từ app, API, MCP, chiến dịch, luật hay điện thoại).

Từ bản web 1.0.0, máy chạy —.

Tên Giá trị
Mã message.sent
Nhóm Tin nhắn
Trạng thái Đăng ký được
Scope cần để nhận messages.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 chat_types, exclude_sent_by, exclude_connection_ids, exclude_own_connection, conversation_ids, conversation_tags, keywords, has_media, campaign_ids
Trường bị bỏ ở chế độ nội dung thin message.text, message.reply_to.text, message.reply_to.sender_name, message.quote_text, message.attachments[].name, message.forwarded_from, conversation.title, conversation.topic.title
Trường do người ngoài viết (không tin cậy) conversation.title, conversation.topic.title, message.reply_to.text, message.quote_text

JSON Schema

https://tlg.builera.app/schemas/events/message.sent/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": "message.sent",
  "time": "2026-10-21T13:45:00.123Z",
  "datacontenttype": "application/json",
  "dataschema": "https://tlg.builera.app/schemas/events/message.sent/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": {
    "message": {
      "id": "7d20e4f6-8a0b-4c2d-9e4f-7a9b1c3d5e7f",
      "tg_message_id": 8813,
      "direction": "out",
      "type": "text",
      "text": "Dạ còn ạ, anh lấy màu nào?",
      "attachments": [],
      "reply_to": null,
      "quote_text": null,
      "mentions": [],
      "is_mention": false,
      "is_reply_to_me": false,
      "is_self": true,
      "is_backfill": false,
      "topic_id": null,
      "grouped_id": null,
      "forwarded_from": null,
      "service_action": null,
      "sent_at": "2026-10-21T13:45:00.123Z",
      "status": "sent",
      "sent_by": "mcp",
      "connection_id": "e7f8a9b0-c1d2-4e3f-8a4b-5c6d7e8f9a0b",
      "causation_event_id": "evt_01JB7Q8X1A6S3D9F2G4H8J0K5L",
      "operation_id": "0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
      "error_code": null
    },
    "conversation": {
      "id": "9f2e4b6a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
      "chat_type": "direct",
      "title": "Nguyễn Văn A",
      "peer_tg_id": "456789",
      "topic": null,
      "assignee_id": null,
      "tags": [
        "vip"
      ],
      "campaign_id": null,
      "lock": null
    },
    "account": {
      "id": "1a7d2c40-5b1e-4e7a-9d3f-6c2b8e1f0a11",
      "label": "Sale 1",
      "username": "sale_demo_1",
      "tg_user_id": "100200300"
    },
    "links": {
      "app": "https://tlg.builera.app/w/07c2e5e1-c42f-4212-851b-c55b6dd7989d/inbox?c=9f2e4b6a-1c3d-4e5f-8a9b-0c1d2e3f4a5b"
    },
    "untrusted_fields": [
      "conversation.title"
    ]
  }
}
Trang này có hữu ích không?

Kiểm lại lần cuối: 24/10/2026 · bản 2.0