The grant is created in Pending. It stays Pending after the customer links their Telegram account and the bot issues the join request link.
In the Customer Portal, the customer clicks 연결, sends /start to the Dodo Payments bot to get their Telegram user ID, enters it, and clicks 계정 연결.
The bot sends the customer a join request link in Telegram. When the customer requests to join, the bot approves the request for their linked account only.
On cancellation, refund, or manual revoke, the bot removes the customer from the chat and bans them. If they buy again, the bot lifts the ban before it sends a new link.
일반적인 용도로는 비공개 알파 채널, 유료 신호 그룹, 커뮤니티 등급 혜택 등이 있습니다.
// client is a *dodopayments.Client, for example from// dodopayments.NewClient(option.WithEnvironmentTestMode()); ctx is a context.Context.client.Entitlements.New(ctx, dodopayments.EntitlementNewParams{ Name: dodopayments.F("Premium Signals Group"), IntegrationType: dodopayments.F(dodopayments.EntitlementIntegrationTypeTelegram), IntegrationConfig: dodopayments.F[dodopayments.IntegrationConfigUnionParam]( dodopayments.IntegrationConfigTelegramConfigParam{ ChatID: dodopayments.F("-1001234567890"), }, ),})