• Stars
    star
    1,308
  • Rank 35,649 (Top 0.8 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.

tgcf logo

tgcf

The ultimate tool to automate custom telegram message forwarding.

GitHub license GitHub stars GitHub issues PyPI Twitter

Code Quality

Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf is an advanced telegram chat forwarding automation tool that can fulfill all your custom needs.

Features

Extremely easy to get started yet ready for any complex task you throw at it.

  • At its simple form, its just a telegram message forwarder that forwards your messages from source to destination chats.
  • You can choose the mode: past for forward all old(existing messages) or live for start forwarding from now. You can either use a telegram bot account or an user account.

image

  • You can cutomize every detail of the forwarding with the help of plugins: filter(blacklist/whitelist), format(bold, italics, etc), replace(supports regex), caption(header/footer). You can even apply watermark to images/videos, or perform optical character recognition (ocr) on images.

image

  • tgcf comes with a web interface to customize all these options. You may define you config in json, and run tgcf from the CLI if you wish.

image image

  • Detailed documentation and videos makes it easy for you to configure tgcf and deploy to any platform of your choice. The following videos (english) explain everything in great detail.
  • Supported environments Linux, Mac, Windows (Running Ubuntu on top of WSL-2), Android (Using Termux app) and any platform where running Docker containers is supported.
  • All these is free and open source, with not a single feature behind a paywall. Tgcf serves to be a free alternative to many commercial telegram bots out there. However you may sponsor to accelerate the development of any new feature and get fast support over chat.

Install and Run

If you want to use tgcf for free, then run on your own desktop or mobile computer.

Make sure you are on a supported environment and have python:3.10 or above, installed.

  • Create a directory and move into it.

    mkdir my-tgcf
    cd my-tgcf
  • Create a python virtual environment and activate it.

    python3 -m venv .venv
    source .venv/bin/activate
  • Install tgcf using pip

    pip install tgcf
    tgcf --version
  • Set the password for accessing web interface. The password is to be set in the .env file.

    echo "PASSWORD=hocus pocus qwerty utopia" >> .env

    Set your own password, instead of whats given above.

    Security advice:

    • Please make sure the password has more than 16 characters.
    • You can save your password in any password manager (may be of browser) to autofill password everytime.
  • Start the web-server.

    tgcf-web

To run tgcf without the web-ui read about tgcf cli.

If you are planning to use watermarking and ocr features within tgcf, you need to install ffmpeg and tesseract-ocr libraries in you system. Read more.

See also: How to install and run using docker ?

Deploy to Cloud

Click on this link and get free 200$ on Digital Ocean.

DigitalOcean Referral Badge

NOTE You will get nothing if you directly sign up from Digital Ocean Home Page. Use the link above, or click on the big fat button above to get free 200$.

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.

Here are some guides for deployment to different 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.

More Repositories

1

bulk-email-sender

Send Templatized Dynamic Emails Automatically
Python
77
star
2

telewater

A telegram bot that applies watermark on images, gifs, and videos.
Python
73
star
3

run-py-bot

A telegram bot that runs python code. Evaluate pythonic expressions on the go, right from your chat.
Python
51
star
4

wappdriver

Wondering how to send WhatsApp messages using Python using only 3 lines of code? You have come to the right place!
Python
46
star
5

tg-login

A command-line tool to login into Telegram with user or bot accounts and generate session string.
Python
45
star
6

iota-git-session

Git + GitHub tutorial by IOTA Club
42
star
7

webhook-aiogram-heroku

A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.
Python
39
star
8

howdoi-telegram

Get instant coding answers from Stack Overflow in your Telegram chat. Save time and have fun.
Python
30
star
9

watermark.py

A convenient python wrapper around FFmpeg to apply watermarks to images, gifs, and videos.
Python
18
star
10

simple-screenshot-bot

Telegram bot that takes screenshot of webpages.
Python
15
star
11

tgcf-on-gh-action

Running tgcf periodically in past mode for free using GitHub Actions.
11
star
12

cbse-xii-cs-proj

CBSE XII Boards Computer Science Practicals solutions and final Project. Python and SQL.
Python
11
star
13

django-student-fees-record-portal

Simple student fee management portal for an institution. Made with Python using the Django framework. Deprecated and to be used no more. Use it for educational purposes. Sample Django application.
Python
10
star
14

pyproject

A highly opinionated but generic python project template for building a wide range of python applications or libraries.
Makefile
10
star
15

dirganize

Declutter your folders and get peace of mind. A command-line tool to organize files into category directories.
Python
9
star
16

fastapi-url-shortener

Simple yet powerful URL shortener built with FastAPI. Work is in Progress. No external issues or PRs will be accepted.
Python
8
star
17

map-teachers-to-centers

Mapping Teachers to nearest Exam Centers and simultaneosly making sure that all the Vacancies(Requirements) of each Center is fulfilled
Python
8
star
18

ipynb1stmd2pdf

Personal Automation Utility - Generate PDF files from the first markdown cell of colab notebooks in a Google Drive folder
Python
6
star
19

django-polling-site

My implementation after following the official tutorial from https://docs.djangoproject.com/en/3.1/intro/tutorial01/
Python
6
star
20

minsert

Insert dynamic content in markdown without using a separate template file.
Python
4
star
21

ado-py

Do stuff with python. Quickly access functions defined in do.py from the command-line.
Python
4
star
22

aahnik.github.io

Redirects to my GitHub profile
HTML
3
star
23

unison

A dynamic site for communities. Blogs, Events, Donations(UPI Integrated), and a fully configurable home page!
Python
3
star
24

mendi

A python library for building menu-driven CLI applications.
Python
3
star
25

llm-pdf-chat

Chat with LLMs using PDFs as context! Experimental exploration: FastAPI + Streamlit + Langchain
Python
3
star
26

serioflex

Serializers and De-serializers written in C for all common formats: XML, JSON and YAML, TOML and INI.
C
2
star
27

verlat

Get info about the latest release of a package on PyPI.
Python
2
star
28

setup-linux

scripts to setup system
Shell
2
star
29

swarna-krishi-api

Backend of Swarna Krishi Web Application developed during Hackfrenzy (Abhisarga - IIITS TechnoCultural Fest 2023)
Python
1
star
30

learning-lab-write-docker-actions

Python
1
star
31

gdsc-ml-ds-bootcamp-2023

This repo contains files given by my seniors as well as assignments and final project done by me during the bootcamp.
Jupyter Notebook
1
star
32

left-right

JavaScript
1
star
33

aahnik

1
star
34

sem1-c-sessions

The code that I write during various live sessions or streams.
C
1
star
35

react-first-app-counter

My first react app... A simple counter!
JavaScript
1
star
36

outbench

Maintain a dynamic benchmarks table and choose the best fit algorithm based on current state.
Python
1
star