https://github.com/jipok/telegramretranslator
telegram client (telethon) that forwards all messages from the selected channels/chats to another one
https://github.com/jipok/telegramretranslator
bot client python relay retranslator telegram telethon
Last synced: 6 months ago
JSON representation
telegram client (telethon) that forwards all messages from the selected channels/chats to another one
- Host: GitHub
- URL: https://github.com/jipok/telegramretranslator
- Owner: Jipok
- License: mit
- Created: 2020-04-18T07:21:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T12:52:18.000Z (over 5 years ago)
- Last Synced: 2025-03-24T04:22:17.625Z (7 months ago)
- Topics: bot, client, python, relay, retranslator, telegram, telethon
- Language: Python
- Homepage:
- Size: 237 KB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Retranslator
Telegram client that forwards all messages from the selected channels/chats to another one
## Installation
1. Need python 3.5 or higher
2. `pip3 install telethon`
3. `wget https://raw.githubusercontent.com/Jipok/TelegramRetranslator/master/retranslator.py`
4. Register app on my.telegram.org
5. Change the `API_HASH` and `API_ID` in the script to values from my.telegram.org## Run
1. `python3 retranslator.py`*or*
```
chown +x ./retranslator.py
./retranslator.py
```
2. Log in
3. Open normal telegram client
4. Find a chat with the retranslator bot. There should be a list of dialogs with their id.
5. Select the channel/chat id where the messages will be forwarded.
6. Select the id of chats and channels from where messages should be forwarded.
7. Selecting same id again will remove chat/channel from forwarding.## Multiple accounts
The script saves two files:
- `default.id_list` which contains the id list. The first ID in the file is the target
- `default.session` which contains data for authentication. This file is processed by telethon.You can give the script another profile name:
```
python3 retranslator.py another_name
# or
./retranslator.py another_name
```## SOCKS5 proxy
1. `pip install pysocks`
2. Uncomment 5th line
3. Uncomment the 34th line and specify the proxy server