Skip to main content

The ultimate tool to automate custom telegram message forwarding.

Project description

tgcf logo

tgcf

The ultimate tool to automate custom telegram message forwarding.

GitHub license GitHub stars GitHub issues PyPI Twitter

Code Quality

The key features are:

  1. Forward messages as "forwarded" or send a copy of the messages from source to destination chats.

    A chat can be anything: a group, channel, person or even another bot.

  2. Supports two modes of operation past or live.

    The past mode deals with all existing messages, while the live mode is for upcoming ones.

  3. You may login with a bot or an user account.

    Telegram imposes certain limitations on bot accounts. You may use an user account to perform the forwards if you wish.

  4. Perform custom manipulation on messages.

    You can filter, format, replace, watermark, ocr and do whatever else you need !

  5. Detailed wiki + Video tutorial.

    You can also get help from the community.

  6. If you are a python developer, writing plugins for tgcf is like stealing candy from a baby.

    Plugins modify the message before they are sent to the destination chat.

What are you waiting for? Star the repo and click Watch to recieve updates.

Video Tutorial

A youtube video is coming soon. Subscribe to get notified.

Installation

  • If you are an Windows user, who is not familiar with the command line, the Windows guide is for you.

  • To install tgcf on Android (Termux), there exists an installer script, that allows you to install all dependencies by running just a single line command. Read the guide for android to learn.

  • If you are familiar with Docker, you may read the docker guide for an isolated installation.

  • Otherwise for Linux/Mac, you may install tgcf via python's package manager pip.

    Note: Make sure you have Python 3.8 or above installed. Go to python.org to download python.

    Open your terminal and run the following commands.

    pip install --upgrade tgcf
    

    To check if the installation succeeded, run

    tgcf --version
    

Usage

Configuring tgcf is easy. You just need two files in your present directory (from which tgcf is invoked).

  • .env : To define your environment variables easily.

  • tgcf.config.yml : An yaml file to configure how tgcf behaves.

In your terminal, just run tgcf live or tgcf past to start tgcf. It will prompt you to enter your phone no. or bot token, when you run it for the first time.

For more details run tgcf --help or read wiki.

Deploy to Cloud

Deploying to a cloud server is an easier alternative if you cannot install on your own machine. Cloud servers are very reliable and great for running tgcf in live mode for a long time.

You can enjoy smooth one-click deploys to the major cloud providers.

Getting Help

  • First of all read the wiki and watch the videos to get started.

  • Type your question in GitHub's Search bar on the top left of this page, and click "In this repository". Go through the issues, discussions and wiki pages that appear in the result. Try re-wording your query a few times before you give up.

  • If your question does not already exist, feel free to ask your questions in the Discussion forum. Please avoid duplicates.

  • For reporting bugs or requesting a new feature please use the issue tracker of the repo.

Contributing

PRs are most welcome! Read the contributing guidelines to get started.

If you are not a developer, you may also contribute financially to incentivise the development of any custom feature you need.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgcf-0.2.9.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

tgcf-0.2.9-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file tgcf-0.2.9.tar.gz.

File metadata

  • Download URL: tgcf-0.2.9.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-55-generic

File hashes

Hashes for tgcf-0.2.9.tar.gz
Algorithm Hash digest
SHA256 f0f986888094a8d303bde61883b2b82268dc541775f66f7d21a3332c334eed8a
MD5 c2cefd59e9c645e9bd77adfd31adb971
BLAKE2b-256 891659f05e078293069b85ab960ee5356c0b21740ca67082ce4cf18ede106bc8

See more details on using hashes here.

File details

Details for the file tgcf-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: tgcf-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-55-generic

File hashes

Hashes for tgcf-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc77b4fe456dca3d8b41f4f27c4271c876d2d16bb0682eabfc947f5ec5516e8
MD5 a4b8d5f5822ddc4c734e349311c041a1
BLAKE2b-256 12e5103e0361152b1b8447f4c2387aa418036f018130f8c96092381dc38b3c5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page