Skip to content

R3tr0R4z0r/TGCopyBot-Revived

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The original code comes from https://github.com/radinshayanfar/TGCopyBot which has been updated.

This bot does exactly what it is intented to do! If you want other features (e.g. editing messages, updating messages, etc), you have to customize it for yourself.

PLEASE DON'T ASK FOR NEW FEATURES!

Telegram Copy Bot - Revived

What it does

This bot copies (not forwarding) messages from a source channel (which doesn't have to have administrator privileges on it) to a destination chat (simple user, channel, etc.). It uses a Users api key to access the user account to read the messages to copy which is why ot doesnt need admin privileges.

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 the .env file alongside other configurations (such as phone number of your user, which acts as your bot).

  3. Run the project via Docker and login to Telegram:

    docker run -it --env-file=.env -v telethon-session:/app tgcopybot-telethon
    
    
  4. After logging in, you will see your chat names and their chat id. Copy chat ids of source and destination chats and put them inside App Configuration section of the .env file.

  5. Run the container in detached mode and it will do the job:

    docker run -d --env-file=.env -v telethon-session:/app tgcopybot-telethon
    

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 92.5%
  • Dockerfile 7.5%