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.
The Telegram entitlement gives paying customers access to a private chat or channel. The Dodo Payments Telegram bot generates a one-time invite link for each customer and removes them on cancellation.
What gets delivered
- The grant is created in
pendingwhile the bot prepares the invite, then transitions todeliveredonce the link is ready. - The customer receives a one-time Telegram invite link in their delivery email and customer portal.
- They tap the link and the bot adds them to the configured chat.
- On cancellation, refund, or manual revoke, the bot removes them from the chat.
Connect Telegram
Open Entitlements
In your Dodo Payments dashboard, go to Entitlements and click +, then choose Telegram Access as the integration. The dashboard asks for your Telegram user ID so the bot can verify ownership of the chats it manages.

Get your Telegram user ID
On Telegram, message
/start to:@dodo_payments_botif you’re using Live Mode@DodoPaymentsTestBotif you’re using Test Mode
Add the bot to your chat as an admin
In the Telegram group or channel you want to gate, open the members list and add the same bot as admin (
@dodo_payments_bot for live, @DodoPaymentsTestBot for test) with these two permissions enabled:- Ban Users — required to remove members on revocation
- Add Users — required to invite paying customers

Connect Telegram and pick the chat
Back in the dashboard, paste the user ID from step 2 into Telegram User ID and click Connect Telegram. The chat picker now lists every group and channel where the bot is an admin — pick the one you want to gate, give the entitlement a name, and click Create Entitlement.
Customer flow
- The customer completes checkout.
- Dodo Payments creates a
pendinggrant and asks the bot to generate a one-time invite link to the configured chat. - Once the link is ready, the grant moves to
deliveredand the link is included in the delivery email and customer portal. - The customer taps the link and is added to the chat.
- On revocation, the bot removes the customer from the chat.
Required configuration
| Field | Required | Description |
|---|---|---|
chat_id | Yes | The Telegram chat ID (numeric, often negative for groups/channels). The dashboard picker fills this in for you. |
Create via API
Webhooks
Seeentitlement_grant.* webhook events. Telegram grants arrive pending and transition to delivered once the bot has issued the invite link.
Troubleshooting
Chat doesn't appear in the picker
Chat doesn't appear in the picker
The Dodo Payments bot must be added to the chat as an admin with Add Users enabled. The picker reads live state, so the chat appears as soon as the bot is an admin.
Customer says the invite link doesn't work
Customer says the invite link doesn't work
Telegram one-time links expire after first use. If the customer tapped it on a logged-out device or lost the link, revoke the grant and reissue.
Customer cancelled but is still in the chat
Customer cancelled but is still in the chat
The bot needs the Ban Users admin permission to remove members. Open the chat settings and confirm both Ban Users and Add Users are checked on the Dodo Payments bot.