The Telegram Autoforwarder is a Python script that allows you to forward messages from one chat (group or channel) to another based on specified keywords. It works with both groups and channels, requiring only the necessary permissions to access the messages.
The script uses the Telethon library to interact with the Telegram API. You provide the script with your Telegram API ID, API hash, and phone number for authentication. Then, you can choose to list all chats you're a part of and select the ones you want to use for forwarding messages. Once configured, the script continuously checks for messages in the specified source chat and forwards them to the destination chat if they contain any of the specified keywords.
You can specify one or more keywords that, if found in a message, trigger the forwarding process. Keywords are case-insensitive and can be specified during setup.
Clone the repository:
git clone https://github.com/redianmarku/Telegram-Autoforwarder.git
cd Telegram-Autoforwarder
Install the required dependencies:
pip install -r requirements.txt
Configure the script:
TelegramForwarder.py
file and provide your Telegram API ID, API hash, and phone number in the appropriate variables.Run the script:
python TelegramForwarder.py
Choose an option:
This project is licensed under the MIT License.