Telegram API Integration – Authenticate Entries
SweepWidget lets you connect your own Telegram bot so you can check whether entrants really joined your channel or group. Only verified members will receive entries. Telegram entry methods need the Business plan, and the bot check needs Premium or above. To get started, you will first need to create a Telegram bot.
Create a Telegram bot
Create a Telegram bot with BotFather before connecting it to SweepWidget.
- Start a new conversation with the BotFather.
- Send /newbot to create a new Telegram bot.
- Once you are prompted, enter a name for your new bot.
- Give your new Telegram bot a unique username.
- Copy and save the Telegram bot’s access token (you must save this token to input into SweepWidget).
- Optional: to manually get the access token, send /token to the BotFather.
Add your Telegram bot as an admin to your channel
First, choose which channel you want users to follow from your SweepWidget giveaway. To check the follows, you will need to add your Telegram bot as an admin to this channel.
-
Go to the info section of your channel and click on Administrators.
-
Search for the bot you want to connect.


Enable all of the features you want, and click Done.

Set up your Telegram entry method
Once your Telegram bot is set up and is an administrator of your channel, create the entry method in your SweepWidget giveaway.
First, create or edit a giveaway. Next, open the Entry Methods tab, then add a Telegram > Follow A Channel entry method.
Next, input the link to your Telegram channel and the channel name exactly as they appear.

Under How do you want to validate entries?, select API validated entries.

Next, answer Public or private channel? with Public or Private. Then paste the token from your bot into Your Telegram bot API token (remember, this bot must be an administrator of the channel you want users to follow).

The same bot check works for the Join A Group and Leave A Comment In A Group entry methods; make the bot an admin of that group.
That’s it! Now, when users go to follow your Telegram channel, they are asked to log in with Telegram. SweepWidget then checks whether they’re a member. If they are, they get an entry. If they’re not, they see “[username] is not following [channel]” and won’t get an entry until they join.