Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.03 KB

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)>