Tài liệu

Tham chiếu

Sửa webhook

Sửa tên / URL / loại / tài khoản / bộ lọc / chế độ nội dung. Agent phải gửi expectedRevision (nếu không: 409 revision_conflict kèm bản hiện tại). Tên miền mới, mở rộng loại hoặc tài khoản, hay thêm nội dung tin cần người dùng xác nhận.

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

Sửa tên / URL / loại / tài khoản / bộ lọc / chế độ nội dung. Agent phải gửi expectedRevision (nếu không: 409 revision_conflict kèm bản hiện tại). Tên miền mới, mở rộng loại hoặc tài khoản, hay thêm nội dung tin cần người dùng xác nhận.

Thông tin

Tên Giá trị
Mã webhooks.update
Scope cần webhooks.manage
Mức Ghi
Có thể cần xác nhận Có
Kiểu chạy Trả kết quả ngay
Cần Idempotency-Key Không
Vai trò thành viên được phép owner, manager, agent
Trong app Cài đặt → Webhook

Trường vào

Trường Kiểu Bắt buộc Mô tả
id uuid Có
expectedRevision số nguyên Không Phiên bản bạn đã đọc (bắt buộc với agent).
name chữ Không
description chữ Không
url chữ Không
eventTypes chữ[] Không Loại cụ thể (message.mentioned), nhóm (messages.*) hoặc * cho tất cả.
accountScope đối tượng Không
filters đối tượng Không
contentMode "full" | "thin" | "none" Không
contentType "application/json" | "application/cloudevents+json" Không

Ví dụ gọi

curl -X POST https://tlg.builera.app/api/public/v2/ops/webhooks.update \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"00000000-0000-0000-0000-000000000000"}'

Trường ra (data)

Trường Kiểu Bắt buộc
ok true Có
webhook đối tượng Có
changed chữ[] Có

Ví dụ trả về

{
  "data": {
    "ok": true,
    "webhook": {
      "url_host": "text",
      "status": "active",
      "status_reason": "text",
      "status_changed_at": "2026-10-22T12:00:00.000Z",
      "owner": {
        "kind": "human",
        "user_id": "00000000-0000-4000-8000-000000000000",
        "connection_id": "00000000-0000-4000-8000-000000000000",
        "connection_name": "text"
      },
      "event_types": [
        "text"
      ],
      "account_scope": {
        "mode": "all"
      },
      "filters": {
        "direction": "in",
        "keywords": {
          "any": [
            "text"
          ],
          "none": [
            "text"
          ]
        },
        "chat_types": [
          "channel"
        ],
        "mention_only": true,
        "exclude_self": true,
        "exclude_sent_by": [
          "campaign"
        ],
        "exclude_connection_ids": [
          "text"
        ],
        "exclude_own_connection": true,
        "include_backfill": true,
        "conversation_ids": [
          "text"
        ],
        "conversation_tags": [
          "text"
        ],
        "has_media": true,
        "person_stage_ids": [
          "text"
        ],
        "campaign_ids": [
          "text"
        ]
      },
      "filters_text": "text",
      "content_mode": "full",
      "content_type": "application/json",
      "revision": 1,
      "verified_at": "2026-10-22T12:00:00.000Z",
      "tested_at": "2026-10-22T12:00:00.000Z",
      "ready": true,
      "consecutive_failures": 1,
      "failing_since": "text",
      "last_success_at": "2026-10-22T12:00:00.000Z",
      "last_failure_at": "2026-10-22T12:00:00.000Z",
      "created_at": "2026-10-22T12:00:00.000Z",
      "updated_at": "2026-10-22T12:00:00.000Z",
      "url": "text",
      "id": "00000000-0000-4000-8000-000000000000",
      "name": "text",
      "description": "text",
      "url_masked": "text"
    },
    "changed": [
      "text"
    ]
  }
}

Dùng qua MCP

Tool webhooks_update có tên sẵn trong profile: Đầy đủ (full). Ở profile khác, tìm bằng tools_search rồi chạy bằng tools_run.

Trang này có hữu ích không?

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