{"id":21273342,"url":"https://github.com/malith-rukshan/auto-reaction-bot","last_synced_at":"2025-04-04T17:04:10.113Z","repository":{"id":233739588,"uuid":"787750255","full_name":"Malith-Rukshan/Auto-Reaction-Bot","owner":"Malith-Rukshan","description":"A Telegram Bot that automatically reacts to posts in Telegram Channels, groups, and private messages, developed as a server-less application.✨","archived":false,"fork":false,"pushed_at":"2024-10-23T12:45:18.000Z","size":6507,"stargazers_count":70,"open_issues_count":1,"forks_count":166,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T16:04:03.261Z","etag":null,"topics":["auto-reactions","cloudflare-workers","serverless","telegram-bot","telegram-bot-api","vercel"],"latest_commit_sha":null,"homepage":"https://t.me/Auto_ReactionBOT","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Malith-Rukshan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-17T05:40:46.000Z","updated_at":"2025-03-26T16:04:23.000Z","dependencies_parsed_at":"2025-02-16T14:11:33.373Z","dependency_job_id":"1c11adbf-168c-4f89-9000-ff0bda006115","html_url":"https://github.com/Malith-Rukshan/Auto-Reaction-Bot","commit_stats":null,"previous_names":["malith-rukshan/auto-reaction-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malith-Rukshan%2FAuto-Reaction-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malith-Rukshan%2FAuto-Reaction-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malith-Rukshan%2FAuto-Reaction-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malith-Rukshan%2FAuto-Reaction-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Malith-Rukshan","download_url":"https://codeload.github.com/Malith-Rukshan/Auto-Reaction-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217174,"owners_count":20903008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-reactions","cloudflare-workers","serverless","telegram-bot","telegram-bot-api","vercel"],"created_at":"2024-11-21T09:13:40.472Z","updated_at":"2025-04-04T17:04:10.095Z","avatar_url":"https://github.com/Malith-Rukshan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"text-align:center;\" align=\"center\"\u003e\n  \u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/Malith-Rukshan/Auto-Reaction-Bot/main/logo.png\" width=\"256px\" height=\"256px\"/\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e❤️ Auto Reaction Bot ✨\u003c/h1\u003e\n\u003cdiv align='center'\u003e\n\u003ca href='https://Auto_ReactionBOT.t.me'\u003e\n\u003cimg src='https://img.shields.io/badge/Demo-Workers-1cd760?logo=cloudflare\u0026style=flat'\u003e\n\u003c/a\u003e\n\u003ca href='https://t.me/Auto_ReactionBOT'\u003e\n\u003cimg src='https://img.shields.io/badge/Telegram-@Auto__ReactionBOT-blue?logo=telegram\u0026style=flat'\u003e \n\u003c/a\u003e\n\u003c/div\u003e\n\u003ch4 align=\"center\"\u003e✨ Automate Your Telegram Chats with this Auto Reaction Bot! React to Messages Effortlessly! 🚀\u003c/h4\u003e\n\u003cdiv align=\"center\"\u003e\n  Serverless deployment on Cloudflare - Free\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://core.telegram.org/bots/api#setmessagereaction\"\u003eTelegram API\u003c/a\u003e\n  ·\n  \u003ca href=\"https://core.telegram.org/bots/api#reactiontype\"\u003eSupported Reactions\u003c/a\u003e\n  .\n  \u003ca href=\"https://github.com/Malith-Rukshan/Auto-Reaction-Bot/issues/new\"\u003eReport a Bug\u003c/a\u003e\n\u003c/div\u003e\n\n##\n![Auto Reaction Preview](https://raw.githubusercontent.com/Malith-Rukshan/Auto-Reaction-Bot/main/preview.gif)\n\n\n## ✨ Features\n- Automatic Reactions ✓\n- Supports Multiple Chats ✓\n- Customizable Reactions ✓\n- Efficient Real-Time Processing ✓\n- Serverless Architecture ✓\n- Supports for Groups \u0026 Channels ✓\n- Compliance with Telegram API Updates ✓\n- Lightweight Code - Easy Setup ✓\n- More Comming Soon...\n\n## 🚀 Deploy on PasS\n\nSet All Environmental variables before deploy. -  [Instructions](#-configuring-environments)\n\n[![Deploy with heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/Malith-Rukshan/Auto-Reaction-Bot)\n\n[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/xAf8hY?referralCode=jC4ZQ_)\n[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)\n\n### ✅ Serverless - Free\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Malith-Rukshan/Auto-Reaction-Bot)\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/Malith-Rukshan/Auto-Reaction-Bot)\n\n\u003c/br\u003e\n\n## 🚀 Deploy with Workers\n\nDeploying this Telegram Auto-Reaction Bot on Cloudflare is straightforward thanks to the Deploy to Cloudflare button. Follow the steps below to get started:\n\n1. **Start the Deployment**:\n    - Click the \"Deploy to Cloudflare Workers\" button below.\n    - [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/Malith-Rukshan/Auto-Reaction-Bot)\n    \n2. **Set up your Cloudflare account**:\n    - If you do not already have a Cloudflare account, you will be prompted to create one.\n    - Follow the on-screen instructions to set up your new Worker.\n\n3. **Configure and Deploy**:\n    - Once logged in, authorize the deployment and configure the Worker with the environment variables described below.\n    - Review and adjust the Worker’s settings as needed before finalizing the deployment.\n    - You must add Repository secrets according to instructions before deployment.\n    - After Deploy you must [Configure the Webhook](#-configure-the-webhook)\n\n\u003cdetails\u003e\u003csummary\u003eCloudflare Worker Settings\u003c/summary\u003e\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/Malith-Rukshan/Auto-Reaction-Bot/main/cloudflare-settings.png\"/\u003e\u003c/details\u003e\n\n✅ **Demo**: Experience the Auto Reaction Bot in demo: [Auto Reaction Bot ✨](https://t.me/Auto_ReactionBOT).\n\n## 🚀 Deploy with Github Actions\nFirst you must Add Repository secrets as follows\n\n\u003cdetails\u003e\u003csummary\u003eAdd Repository secrets\u003c/summary\u003e\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/Malith-Rukshan/Auto-Reaction-Bot/main/github-secrets.png\"/\u003e\u003c/details\u003e\n\nAfter that [Click Here](https://github.com/Malith-Rukshan/Auto-Reaction-Bot/actions/workflows/deploy.yml) to Run Action.\n\n## 🛠 Configuring Environments\n\nTo ensure that your Telegram Auto-Reaction Bot operates correctly, you will need to configure several environment variables in your Cloudflare Worker settings:\n\n- `BOT_TOKEN`: This is your bot's token, which you can generate from [BotFather](https://t.me/BotFather). This token allows your bot to authenticate and interact with the Telegram API.\n- `BOT_USERNAME`: The username you have set for your bot. This is used within the script to identify messages intended for your bot.\n- `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 👍❤🔥🥰👏😁🎉🤩🙏👌🕊😍🐳❤‍🔥💯⚡🏆.\n- `RANDOM_LEVEL`: An integer that determines the randomness of reactions in **group chats**. Lower values result in more predictable reactions, while higher values increase randomness. Default is `0`, meaning reactions are consistent by default.\n- `RESTRICTED_CHATS`: A list of chat IDs where the bot should not react to messages (Optional). Split each chat ID by \" , \". Example : `-1001233434,3434234`\n\n## 🧩 Configure the Webhook\nOpen your web browser and enter the following URL (replace \u003cYourBotToken\u003e with your actual bot token and https://your.cloudflare.worker.url/ with your Cloudflare Worker URL):\n    \u003cbr\u003e\n    \n```\nhttps://api.telegram.org/bot\u003cYourBotToken\u003e/setWebhook?url=https://your.cloudflare.worker.url/\n```\n\n**Verify the Webhook Configuration**:\nTo check if the webhook is set up correctly, navigate to:\n    \u003cbr\u003e\n\n```\nhttps://api.telegram.org/bot\u003cYourBotToken\u003e/getWebhookInfo\n```\n\n## 🚀 Deploy Manually with Cloudflare Wrangler\n\nIf you prefer to manually deploy the Auto Reaction Bot using Cloudflare Wrangler, follow these detailed steps to get started:\n\n### Prerequisites\nBefore you begin, you will need to have git installed on your local machine to clone the repository.\n\n### Step 1: Clone the Repository\nStart by cloning the repository to your local machine. Open your terminal and run the following command:\n```\ngit clone https://github.com/Malith-Rukshan/Auto-Reaction-Bot.git\ncd Auto-Reaction-Bot\n```\n\n### Step 2: Configure wrangler.toml\nEdit 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](#-configuring-environments)\n\n### Step 3: Install Cloudflare Wrangler\nTo deploy using Cloudflare Wrangler, you must first install it. You can find the installation instructions and more information on the [official Cloudflare Wrangler documentation](https://developers.cloudflare.com/workers/wrangler/install-and-update/).\n\n### Step 4: Deploy Using Wrangler\nOnce 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:\n```\nwrangler publish\n```\nThis command will deploy your bot to Cloudflare Workers, now you must [Configure the Webhook](#-configure-the-webhook). After All it will start reacting to messages in Telegram chats as configured.\n\n## 🎯 Credits and Other\n- Based on [Telegram BOT API](https://core.telegram.org/bots/api)\n- 🧑‍💻 Built with 💖 by [Single Developers \u003c/\u003e ](https://t.me/SingleDevelopers)\n\n## ⚖️ License\nAnd of course:\n\nMIT: http://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalith-rukshan%2Fauto-reaction-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalith-rukshan%2Fauto-reaction-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalith-rukshan%2Fauto-reaction-bot/lists"}