Giter VIP home page Giter VIP logo

telegram-forwarder-bot's Introduction

Telegram Forwarder Bot

The Telegram Forwarder Bot is a Python-based tool that automates the forwarding of messages from one Telegram chat to another. This is particularly useful for managing information flow in channels, groups, or personal messages based on specific keywords.

Features

  • Compatibility: Supports groups, channels, and personal chats.
  • Keyword Filtering: Automatically forwards messages containing designated keywords.
  • Telethon Library: Utilizes the Telethon library to interact with the Telegram API efficiently.

How It Works

The bot authenticates using your Telegram API ID, API hash, and phone number. You can configure the source and destination chats, as well as set keywords that trigger the forwarding of messages. The bot operates continuously, scanning for and forwarding messages based on your specified criteria.

Prerequisites

Ensure that Python 3 is installed on your system.

Setup and Usage

  1. Make sure to have Python3

  2. Download the code or clone the repository:

    git clone https://github.com/MohammadShabib/Telegram-Forwarder-Bot.git
    cd Telegram-Forwarder-Bot
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Run the script:

    python main.py
  5. Choose an option:

    • Update Config: Set up or update your Telegram API credentials.
    • List Chat: Display a list of all chats available for forwarding.
    • Forward Messages: Configure the source and destination chat IDs, set a forwarding delay, and specify keywords.

Data Directory

Configuration files and other data are stored in the resources folder.

Security Notes

  • Keep your API credentials confidential.
  • Verify that you have the appropriate permissions in any chats used for forwarding.

License

This project is licensed under the MIT License.

telegram-forwarder-bot's People

Contributors

mohammadshabib avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

telegram-forwarder-bot's Issues

Forward Edited message feature

Thank you for your work, it's works properly :)
It seems the script does not recreate Edited messages in the destination, how can I add the function?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.