Case study: automating subscriptions to a private Telegram channel and recurring payments via CloudPayments

Situation and purpose

It was necessary to set up paid access to a closed channel: the user pays for the subscription with a bank card, receives an invitation to the channel and remains a member upon successful renewals. All the logic is in the Telegram bot: registration, changing payment details, canceling subscriptions, recurring charges and automatic access control.

Subscription Business Logic

  1. Decoration



    charge + tokenization

    • subscription_idaccount_idtoken

    • a one-time invite link

  2. Access to a private channel

    validationgetChatMember

  3. Recurrent write-offs

    reminder

    recurring by token

  4. Updating banking details (changing the card)

    One more monthNext

  5. Cancel subscription

    until the end of the paid period

  6. An undelivered extension

    the strategy of retraysreviewed

Channel access control

  • Extradition

  • Membership VerificationgetChatMember

  • Auto-deletion

Оставьте заявку —
подготовим решение

info@softrest.ru