Code Monkey home page Code Monkey logo

auto-reaction-bot's Introduction

❤️ Auto Reaction Bot ✨

✨ Automate Your Telegram Chats with this Auto Reaction Bot! React to Messages Effortlessly! 🚀

Serverless deployment on Cloudflare - Free

Telegram API · Supported Reactions . Report a Bug

Auto Reaction Preview

✨ Features

  • Automatic Reactions ✓
  • Supports Multiple Chats ✓
  • Customizable Reactions ✓
  • Efficient Real-Time Processing ✓
  • Serverless Architecture ✓
  • Supports for Groups & Channels ✓
  • Compliance with Telegram API Updates ✓
  • Lightweight Code - Easy Setup ✓
  • More Comming Soon...

🚀 Deploy with Workers

Deploying this Telegram Auto-Reaction Bot on Cloudflare is straightforward thanks to the Deploy to Cloudflare button. Follow the steps below to get started:

  1. Start the Deployment:

    • Click the "Deploy to Cloudflare Workers" button below.
    • Deploy to Cloudflare Workers
  2. Set up your Cloudflare account:

    • If you do not already have a Cloudflare account, you will be prompted to create one.
    • Follow the on-screen instructions to set up your new Worker.
  3. Configure and Deploy:

    • Once logged in, authorize the deployment and configure the Worker with the environment variables described below.
    • Review and adjust the Worker’s settings as needed before finalizing the deployment.
    • You must add Repository secrets according to instructions before deployment.
    • After Deploy you must Configure the Webhook
Cloudflare Worker Settings

Demo: Experience the Auto Reaction Bot in demo: Auto Reaction Bot ✨.

🚀 Deploy with Github Actions

First you must Add Repository secrets as follows

Add Repository secrets

After that Click Here to Run Action.

🛠 Configuring Environments

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

🧩 Configure the Webhook

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<YourBotToken>/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<YourBotToken>/getWebhookInfo

🚀 Deploy Manually with Cloudflare Wrangler

If you prefer to manually deploy the Auto Reaction Bot using Cloudflare Wrangler, follow these detailed steps to get started:

Prerequisites

Before you begin, you will need to have git installed on your local machine to clone the repository.

Step 1: Clone the Repository

Start by cloning the repository to your local machine. Open your terminal and run the following command:

git clone https://github.com/Malith-Rukshan/Auto-Reaction-Bot.git
cd Auto-Reaction-Bot

Step 2: Configure wrangler.toml

Edit the wrangler.toml file in your project directory to include your environment variables (like example.wrangler.toml). You will need to replace the placeholder values with your actual data : 🛠 Configuring Environments

Step 3: Install Cloudflare Wrangler

To deploy using Cloudflare Wrangler, you must first install it. You can find the installation instructions and more information on the official Cloudflare Wrangler documentation.

Step 4: Deploy Using Wrangler

Once Wrangler is installed and you've configured your wrangler.toml file, deploy your project to Cloudflare Workers by running the following command in your terminal:

wrangler publish

This command will deploy your bot to Cloudflare Workers, now you must Configure the Webhook. After All it will start reacting to messages in Telegram chats as configured.

🎯 Credits and Other

⚖️ License

And of course:

MIT: http://opensource.org/licenses/MIT

auto-reaction-bot's People

Contributors

malith-rukshan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.