Connecting a Bot
How to link a Telegram bot to your project
Navigating to Project Settings
To manage your bot connection, navigate to All Projects from the sidebar to see your project list first.
Overview
A Bot is the primary interface between your business and your customers. It handles onboarding, subscription management, and delivering access to your resources. Every project requires a unique Telegram bot.
Connecting a Bot
Connecting a bot involves creating one on Telegram and linking its token to your MemberPass project.
Initiate Connection
- Navigate to the All Projects page.
- Find the project you want to connect.
- Click the Actions button (three dots) on the project card or row.
- Select Connect Bot from the dropdown menu.
Create Bot via BotFather
If you haven't created a bot yet, follow the on-screen video instructions or these steps:
- Open Telegram and search for @BotFather.
- Send the command
/newbot. - Follow the prompts to assign a Name and Username to your bot.
Get the Token
Once created, @BotFather will send you a message containing your HTTP API Token. It looks like this:
123456789:ABCdefGhIJKlmNoPQRstuVWxyz
Copy this token to your clipboard.
Activate
Paste the token into the Telegram Bot Token field in the modal and click Activate Bot.
Your bot is now live and ready to interact with customers.
Disconnecting a Bot
If you need to change your bot or stop operations, you can disconnect it.
Warning: Severed Connection
Disconnecting your bot will immediately stop it from responding to customers. MemberPass will be unable to send notifications (like renewal reminders) or manage kick/ban actions for expired subscriptions. However, existing recurring payments may continue unless cancelled.
Open Disconnect Modal
- Go to All Projects.
- Click the Actions button on your project.
- Select Disconnect Bot.
Confirm
Read the warning carefully. If you are sure, click Disconnect Bot to sever the connection.