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.
- 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.
- Fork the repo: Fork the repo with your own name.
- Fill Bot Token and User ID: In the
main.js
file, replacebotToken
with your bot token andownerUserId
with your ID. - Deploy the Bot: Deploy the bot by clicking the following link:
/auth <user_id>
: Authorize a user to access the bot./unauth
: Revoke authorization for a user.
- Start the bot.
- Provide the source channel ID, destination channel ID, start message ID, and end message ID when prompted.
- The bot will forward messages from the specified range.
/cancel
: Cancel ongoing message forwarding.
- node-telegram-bot-api: Library to interact with the Telegram Bot API.
This project is licensed under the MIT License.