Skip to main content

The ultimate tool to automate telegram message forwarding.

Project description

tgcf logo

tgcf

The ultimate tool to automate telegram message forwarding.

GitHub license GitHub stars GitHub issues PyPI Twitter


The key features are:

  1. Two modes of operation are past or live for dealing with either existing or upcoming messages.
  2. Supports signing in with both telegram bot account as well as user account.
  3. Custom Filtering of messages based on whitelist or blacklist.
  4. Modification of messages like Text Replacement, Watermarking, OCR etc.
  5. Detailed documentation📖 + Video tutorial + Fast help in discussion forum💬.
  6. If you are a python developer, writing plugins🔌 is like stealing candy from a baby.

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

You can also join the official Telegram Channel, to recieve updates without any ads.

Video Tutorial 📺

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

Run Locally 🔥

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

Platform Supported
Windows
Mac
Linux
Android

If you are familiar with Docker, you may go that way for an easier life.

Open your terminal (command prompt) and run the following commands.

pip install pipx
pipx install tgcf

To check if the installation succeeded, run

tgcf --version

If you see an error, that means installation failed.

Configuration 🛠️

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.

Start tgcf

In your terminal, just run tgcf live or tgcf past to start tgcf.

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

Run on 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.

When you are deploying on a cloud platform, you can configure tgcf using environment variables. The contents of tgcf.config.yml can be put inside the environment variable called TGCF_CONFIG.

You may click on the platform name (left coloumn) to learn more about the deployment process. Clicking on the "deploy" button (right coloumn) will directly deploy the application to that platform.


Platform One click deploy
Heroku Deploy to Heroku
Digital Ocean Deploy to DO
Google Cloud Run on Google Cloud
Gitpod Run on Gitpod

If you need to run tgcf in past mode periodically, then you may set a cron job in your computer or use GitHub Actions to run a scheduled workflow.

Getting Help 💁🏻

  • First of all read the wiki and watch the videos.
  • If you still have doubts, you can try searching your problem in discussion forum or the issue tracker.
  • Feel free to ask your questions in the Discussion forum.
  • For reporting bugs or requesting a feature please use the issue tracker for this repo.

Please do not send me direct messages on Telegram. (Exception: Sponsors can message me anytime)

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.1.17.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

tgcf-0.1.17-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgcf-0.1.17.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.4 Linux/5.8.0-50-generic

File hashes

Hashes for tgcf-0.1.17.tar.gz
Algorithm Hash digest
SHA256 e8520d9bfe1b62351b907574757eedfbe224b319eaf74819cbe91b65c5353e7e
MD5 68623cbbbe20ef59066ad6448061dbb6
BLAKE2b-256 b414f134a9638d75d0720e6f5f1036ddbd64e092742bac18a0324203122417bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgcf-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.4 Linux/5.8.0-50-generic

File hashes

Hashes for tgcf-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8a003ac0919249da4e20660469c0b2c99e2ad7e75d0140e7e3142b75513d49
MD5 1d0a45c2c5a84e6b800216b9a41c0f13
BLAKE2b-256 32a4410e91d79aebc64e2d481805f6a970d0c02b7971427d2248ad5f2b20b557

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