Gurubed2024 / Forward-abc-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Forwarder Bot

This Telegram bot facilitates the forwarding of messages from one channel to another. It ensures that both the source and destination channels have administrative privileges for successful message forwarding. Additionally, it supports authorization and cancellation commands for enterprise and production-level use.

Features

  • Message Forwarding: Seamlessly forward messages from the old channel to the new channel.
  • Authorization Control: Utilize /auth and /unauth commands to manage user access to the bot.
  • Cancellation Support: Employ the /cancel command to halt ongoing message forwarding.

Setup

  1. Fork the repo: Fork the repo with your own name.
  2. Fill Bot Token and User ID: In the main.js file, replace botToken with your bot token and ownerUserId with your ID.
  3. Deploy the Bot: Deploy the bot by clicking the following link: Deploy on Heroku

Usage

Authorization Commands

  • /auth <user_id>: Authorize a user to access the bot.
  • /unauth: Revoke authorization for a user.

Message Forwarding

  1. Start the bot.
  2. Provide the source channel ID, destination channel ID, start message ID, and end message ID when prompted.
  3. The bot will forward messages from the specified range.

Cancellation Command

  • /cancel: Cancel ongoing message forwarding.

Contact

  • Website: Website
  • Telegram: Telegram
  • YouTube: YouTube

Dependencies

License

This project is licensed under the MIT License.

About

License:MIT License


Languages

Language:JavaScript 94.4%Language:Dockerfile 5.3%Language:Procfile 0.2%