Skip to content

A python script to copy telegram messages to another chat (without forwarding)

Notifications You must be signed in to change notification settings

prgofficial/TGCopyBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Copy Bot

What it does

This bot can copy (not forward) messages from a channel (which doesn't have administrator privileges on it) to another chat (simple user, channel, etc)

How to use

  1. Copy .env.example to .env.
    cp .env.example .env
    
  2. Obtain api_id and api_hash from this link and fill it inside Telegram Configuration section of .env alongside other configurations (such as phone number of your user which acts as your bot)
  3. Run it and login to telegram (may take some minutes to build image for the first time):
    sudo docker-compose run bot
    
  4. After logging in you will see your chat names and their chat id. Just copy chat id of source and destination chats and put them inside App Configuration section of .env.
  5. Rebuild the docker image:
    sudo docker-compose build
    
  6. Run the script as a daemon:
    sudo docker-comose up -d
    

About

A python script to copy telegram messages to another chat (without forwarding)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 93.2%
  • Dockerfile 6.8%