Skip to content

The Telegram Admin Forwarder Bot is a bot designed to automatically forward messages sent by an admin in a group to another group specified by the admin. It utilizes the Telegram Bot API and can be customized to suit your needs.

Kodedbykenzie/Telegram-Admin-Forwarder-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Admin Forwarder Bot

Table of content

A Telegram bot that forwards messages sent by an admin to a specified group.

Overview

The Telegram Admin Forwarder Bot is a bot designed to automatically forward messages sent by an admin in a group to another group specified by the admin. It utilizes the Telegram Bot API and can be customized to suit your needs.

Features

  • Forwards messages sent by the admin to a specified group.
  • Sends a notification to the destination group when the bot is added to a new group by the admin.

Setup

  1. Create a new bot using the BotFather on Telegram and obtain the API token.

  2. Clone this repository to your local machine:

git clone https://github.com/yourusername/telegram-admin-forwarder-bot.git
  1. Install the required dependencies:
cd telegram-admin-forwarder-bot
npm install
  1. Open the bot.js file in a text editor.

  2. Replace 'BOT_API_TOKEN' with the API token obtained from the BotFather.

  3. Replace 'ADMIN_ID' with the Telegram ID of the admin whose messages should be forwarded.

  4. Replace 'GROUP_ID' with the ID of the group which you want to forward the messages.

  5. Save the changes.

Usage

  1. Make sure the bot is running by executing the following command:
node bot.js
  1. Add the bot to the desired group. Only messages sent by the admin will be forwarded.

  2. Whenever the admin sends a message in the group, it will be automatically forwarded to the specified group.

Customization

You can customize the behavior of the bot according to your requirements. Some possible modifications include:

Changing the forwarded message format.

Adding additional checks or conditions before forwarding messages.

Implementing error handling or logging mechanisms.

Feel free to modify the bot.js file and explore the Telegram Bot API documentation for more advanced functionality.

Contributing

Contributions to this project are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

Acknowledgements

Contact

For any questions or inquiries, please contact chibundumozia@gmail.com

About

The Telegram Admin Forwarder Bot is a bot designed to automatically forward messages sent by an admin in a group to another group specified by the admin. It utilizes the Telegram Bot API and can be customized to suit your needs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published