GithubHelp home page GithubHelp logo

knipundananjaya / tgcopybot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radinshayanfar/tgcopybot

0.0 0.0 0.0 25 KB

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

Dockerfile 4.94% Python 77.76% Shell 17.30%

tgcopybot's Introduction

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. Reading python-telegram and TDlib documentation may help you for doing so.

PLEASE DON'T ASK FOR NEW FEATURES!

Telegram Copy Bot

What it does

This bot copies (not forward) messages from a source channel (which doesn't have administrator privileges on it) to a destination 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 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 td-data:/tmp/.tdlib_files \
        radinshayanfar/tgcopybot
    
  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 td-data:/tmp/.tdlib_files \
       radinshayanfar/tgcopybot
    

tgcopybot's People

Contributors

radinshayanfar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.