All Templates / Bots
Auto-Reaction-Bot
A Telegram Bot that automatically reacts to posts in Telegram All messages.
Auto-Reaction-Bot
Malith-Rukshan/Auto-Reaction-Bot
Just deployed
โ Demo: Experience the Auto Reaction Bot in demo: Auto Reaction Bot โจ.
To ensure that your Telegram Auto-Reaction Bot operates correctly, you will need to configure several environment variables in your Cloudflare Worker settings:
BOT_TOKEN
: This is your bot's token, which you can generate from BotFather. This token allows your bot to authenticate and interact with the Telegram API.BOT_USERNAME
: The username you have set for your bot. This is used within the script to identify messages intended for your bot.EMOJI_LIST
: A string of emojis that the bot will use to react to messages. You can customize this list to include any emojis you prefer, such as ๐โค๐ฅ๐ฅฐ๐๐๐๐คฉ๐๐๐๐๐ณโคโ๐ฅ๐ฏโก๐.RESTRICTED_CHATS
: A list of chat IDs where the bot should not react to messages (Optional). Split each chat ID by " , ". Example : -1001233434,3434234
Open your web browser and enter the following URL (replace with your actual bot token and https://your.cloudflare.worker.url/ with your Cloudflare Worker URL):
https://api.telegram.org/bot/setWebhook?url=https://your.cloudflare.worker.url/
Verify the Webhook Configuration:
To check if the webhook is set up correctly, navigate to:
https://api.telegram.org/bot/getWebhookInfo
And of course:
Template Content
Auto-Reaction-Bot
Malith-Rukshan/Auto-Reaction-BotBOT_TOKEN
BOT_USERNAME
Details
Malith Rukshan's Projects
Created on Jun 2, 2024
76 total projects
70 active projects
94% success on recent deploys
JavaScript, Dockerfile, Procfile
Bots
More templates in this category
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY
Agampreet Singh's Projects
245