# How to handle subscriptions using BlockBee Telegram Bot The BlockBee Telegram Bot helps you earn from your Telegram channel or group. You sell subscriptions, buyers pay in crypto, and the bot manages who is in the chat. It is a Mini App: you set everything up in an app inside Telegram. ## Automated User Management When a buyer subscribes, your bot gives them an invite link that works once, and only for them. Only paying subscribers get in. When a subscription ends, the bot removes the member from the chat. Before it ends, the bot reminds them to renew. ## How to use it? ### Create your Telegram Bot Your store runs in a bot you own. Create it with @BotFather: 1. Open [@BotFather](https://t.me/BotFather) and send `/newbot`. 2. Choose a name, then a username. The username must end in "bot" (e.g. `MyStoreBot`). 3. BotFather replies with a token. Copy it, and don't share it with anyone: whoever has it controls your bot. 4. Open your new bot and press **Start**. ![Creating a new bot with BotFather](/kb/tutorials/telegram/handle-subscriptions-telegram-1.png) ### Open BlockBee in Telegram Open [@blockbee_bot](https://t.me/blockbee_bot) and tap **Open BlockBee**. Log in with your BlockBee account the first time. No account yet? [Create one](https://dash.blockbee.io/register) first. ![The Open BlockBee button in @blockbee_bot](/assets/images/tutorials/telegram/miniapp/open-blockbee.png) ### Set up your store In the app: 1. **Set your wallet addresses.** Payments go to the addresses you set. 2. **Open Payment Settings.** Add your logo, choose your currency and pick the coins you accept. Buyers can't see your store until it has a logo. 3. **Open Subscriptions.** Set up the subscription service (it only needs a name), then add a plan for each price and duration you offer. ![Payment Settings with logo, currency and coins](/assets/images/tutorials/telegram/miniapp/payment-settings.png) ![Subscription plans in the BlockBee app](/assets/images/tutorials/telegram/miniapp/subscription-plans.png) > **INFO** >**Note:** Prices are in the currency set in your Payment Settings. Buyers pay the matching amount in the coin they pick. ### Connect your bot and link your channel 1. In **Bots**, tap **Connect a bot** and paste the token from @BotFather. 2. Add your bot to your channel or group as an administrator, with the rights to invite and to restrict (ban) members. 3. In **Bots**, open your bot and tap **Link channel** or **Link group**. BlockBee sends a button to your bot's chat: tap it and pick your channel or group. ![Connecting a bot with its token](/assets/images/tutorials/telegram/miniapp/connect-bot.png) ![Linking a channel to your bot](/assets/images/tutorials/telegram/miniapp/link-channel.png) ### Activate the bot In **Bots**, open your bot and tap **Activate**. While it is active, the bot removes members whose subscription has ended and sends renewal reminders. ![Activating your bot](/assets/images/tutorials/telegram/miniapp/activate-bot.png) > **WARNING** >**Important:** Activating may remove members of your chat who don't have an active subscription. ## Your Bot is Ready! Share your bot's link (`t.me/YourStoreBot`) with your audience. Buyers tap **Open Store** to see your plans, pay in crypto and get their invite link. ![Your store as buyers see it](/assets/images/tutorials/telegram/miniapp/buyer-store.png) > **SUCCESS** >**Pro Tip:** Use coupons to run promotions, and check **Subscriptions** to see who is active and when each subscription ends. ## Related Articles - [Telegram Bot guide](/get-started/telegram-bot) - [How to set up the addresses](/kb/tutorials/dashboard/how-to-set-up-the-addresses) - [How to set the Payment Settings of your Profile](/kb/tutorials/dashboard/how-to-set-the-payment-settings-of-your-profile)