UrekD / Telegram-To-Discord

Mirror all messages from Telegram channels to Discord via a webhook also translate any message that is not in English.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram-To-Discord

Mirrors all messages from Telegram and translates them if they are not English and sends them to the webhook with all the media. Only works for photos and videos not longer than 60 seconds (imgur limit) in which case it displays a link to the message in Telegram.

Requirements

  • Python 3.11 or later
  • Python pip -> requirements.txt
  • Discord bot token
  • Telegram API tokens

How to run

#Download the repo and extract to an empty folder
#Open a CLI ex. CMD,PS,GitBash in the directory
pip3 install -r requirements.txt
#Rename example.env to .env
#Edit info in .env
#APPID and HASH are created here https://core.telegram.org/api/obtaining_api_id
python3 main.py

Example

image

About

Mirror all messages from Telegram channels to Discord via a webhook also translate any message that is not in English.


Languages

Language:Python 97.7%Language:Dockerfile 2.3%