Documentation Index
Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt
Use this file to discover all available pages before exploring further.
Telegram 权限为付费用户提供私人聊天或频道的访问权限。Dodo Payments 的 Telegram 机器人为每位客户生成一次性邀请链接,并在取消时将其移除。
交付内容
- 授权在
pending创建,同时机器人准备邀请,然后在链接准备好后转换为delivered。 - 客户会在交付邮件和客户门户中收到一次性 Telegram 邀请链接。
- 他们点击链接,机器人将他们添加到配置的聊天中。
- 在取消、退款或手动撤销时,机器人会将其从聊天中移除。
连接 Telegram
Open Entitlements
在 Dodo Payments 仪表板中,转到 Entitlements 并单击 +,然后选择 Telegram Access 作为集成。仪表板要求输入您的 Telegram 用户 ID,以便机器人验证其管理的聊天的所有权。

Get your Telegram user ID
在 Telegram 上,消息发送给
/start:@dodo_payments_bot如果您在使用 Live 模式@DodoPaymentsTestBot如果您在使用 Test 模式
Add the bot to your chat as an admin
在您想要限制的 Telegram 群组或频道中,打开成员列表并将同一机器人作为管理员(
@dodo_payments_bot 用于实际,@DodoPaymentsTestBot 用于测试),启用以下权限:- 禁止用户 — 在撤销时必需删除成员
- 添加用户 — 邀请付费客户所需

客户流程
- 客户完成结账。
- Dodo Payments 创建
pending授权,并要求机器人生成一个一次性邀请链接到已配置的聊天。 - 链接准备好后,授权转至
delivered,链接将在交付邮件和客户门户中包含。 - 客户点击链接并加入聊天。
- 在撤销时,机器人会将客户从聊天中移除。
配置要求
| 字段 | 必填 | 描述 |
|---|---|---|
chat_id | 是 | Telegram 聊天 ID(数字,群组/频道通常为负数)。仪表板选择器为您填充此内容。 |
通过 API 创建
Webhooks
参见entitlement_grant.* webhook 事件。Telegram 授予在 pending 到达,并在机器人发出邀请链接后转换为 delivered。
故障排除
Chat doesn't appear in the picker
Chat doesn't appear in the picker
Dodo Payments 机器人必须作为管理员添加到聊天中,并启用添加用户。选择器读取实时状态,因此一旦机器人成为管理员,聊天就会出现。
Customer says the invite link doesn't work
Customer says the invite link doesn't work
Telegram 一次性链接在首次使用后过期。如果客户在未登录设备上点击或丢失了链接,请撤销授权并重新发放。
Customer cancelled but is still in the chat
Customer cancelled but is still in the chat
机器人需要 禁止用户 管理权限来删除成员。打开聊天设置并确认在 Dodo Payments 机器人上勾选了 禁止用户 和 添加用户。