An app to send message from a chat to another. A copier.
pip install -r requirements.txt
-
Modify
.env
file and add your information -
Create your keys here: https://my.telegram.org/auth?to=apps
-
Modify the this file. It has to be like:
channel_source,channel_destination
canale1_username,chat2
chat_username,canale2_username
group>topic,chat3
where the first is the copied, the second the target. Do not change the first row. Attention to not have two channels with the same name. Use >
for topic.
5. Then
python main.py
the first time on the device it should ask the code sent by telegram.
If you want to run in background:
nohup python main.py &
- Add a parameter on connections.csv that allows to send also old messages