Skip to content

This script forwards messages through TG chats and channels. Backed by Telethon.

License

Notifications You must be signed in to change notification settings

gorbatovea/forwardgram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForwardGram

About

This script forwards messages through TG chats and channels. Backed by Telethon.

Installation

pip install -r requirements.txt

Configuration

Configuration file should be stored at conf/api_conf.json.

See conf/api_conf-example.json.

Where should I get parameters for config file?

https://my.telegram.org/apps

Redis installation & setup

Install

docker pull redis:6.2.6

Run

mkdir redis-data 

docker run --name forward-redis -p 127.0.0.1:6379:6379 -v redis-data:/data -d redis:6.2.6 redis-server --save 60 1 --loglevel warning

Official page

Redis docker image

Launch

python3 forwardgram.py \
    --cmd <login|forward> 
    --from <forward_from (mandatory when cmd==forward)> \
    --to <forward_to (mandatory when cmd==forward)> \
    --log-path <logs_dir (optional)> \
    --log-file <logs_file_name (optional)>

About

This script forwards messages through TG chats and channels. Backed by Telethon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages