Skip to content

Rohiteswar/AUTO-TELEGRAM-TO-DISCORD-FORWARDER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram to Discord Message Bot — Forward Telegram POSTS to Discord

  • This repo will soon be archived and won't be supported.

Description

AUTO-TELEGRAM-TO-DISCORD-FORWARDER is a free and open source, can automatically sends posts of telegram to discord bot in form of TEXT, IMAGE(.jpg), VIDEO(.mp4). It enables one to forward posts from Multiple Telegram channels to one (or more) Telegram/Discord channels of your own. This python bot monitors multiple telegram channels. When a new message/entity is sent, it will parse the response and forward it to a discord channel using your own personalized bot. It will also forward the same message to your own Telegram channel.

Getting Started

  1. Create a github account. It always helps !
  2. Star this repository. Its FREE !
  3. Please follow me here if you like my contribution:

Dependencies

  1. Install Docker: If you haven't already, you need to install Docker on your machine. You can download it from the official Docker website Docs.
  2. Run This Command to check docker is installed Successfully or NOT. this command shows the Docker's Version : docker -v
  3. Create your own discord bot, add it to your server and retrive token. Follow Steps here.
  4. Have a Telegram account with valid phone number

Installing and Setup

  • This Project can Easily deployed and run on different systems without worrying about dependencies or system-specific issues until and unless you have Docker Application is Installed on your PC.
  1. Clone this repository
  2. Open your choice of console (or VSCode Integrated Console) and navigate to cloned folder
  3. Fill out a configuration file. An exmaple file can be found at config.yaml-sample.

First Run and Usage

  1. Change the name of config.yaml-sample to config.yaml

Filling config.yaml file

  • Create a two channels on Telegram as channel_send and channel_recieve and fill in their channel ids in config.yaml
  • Add your Telegram api_id and api_hash to config.yaml | Read more here
  • Add your discord_bot_token to config.yaml | Read more here
  • Add your discord_1_channel channel id. Remember when you remove extra discord channels you have to update code in discord_forward.py under comment DISCORD SERVER START EVENT and MESSAGE SCREENER

Editing discord_forward.py

  • Whenever you add and delete discord channels in config.yml; discord_forward.py will have to be updated. If you know basic python you will understand the code.
  • Multiple send/recieve telegram channels in config.yaml can added without any code change.
  1. Filling Dockerfile

    • Replace your current WORKDIR to Dockerfile. Example: WORKDIR /CurrentDIR-Name
  2. Run The Command To Build An Image: docker build -t auto-bot ..

  3. RUN THE COMMAND TO START THE APPLICATION : docker run auto-bot

***PLEASE NOTE:  In the first time you are running the docker image, you will be requried to validate your phone number using telegram API. This happens only at the first time (per session name).

Author

  • Rohiteswar Velagapudi

Buy Me A Coffee

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published