Skip to content

Grey-Time/Telethon-Channel-Clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telethon Channel Clone

  • Clone any telegram channel or group (public & private both 😉)
  • You must have member of source channel or group

Quick Start 🔎

Clone this repository

git clone https://github.com/Grey-Time/Telethon-Channel-Clone.git
cd Telethon-Channel-Clone

Edit config.py file before use

API_ID and API_HASH - Get those from my.telegram.org

PHONE_NUMBER - Give phone number with country code (ex. +91987654321)

NAME - Give any name what you want

SRC_CHAT_ID and DEST_CHAT_ID - Get those from @userinfobot (forward any message from those channel or group to @userinfobot)

Create Virtual Environment

  • Windows

python -m venv myenv
  • macOS and Linux

python3 -m venv myenv

Activate Virtual Environment

  • Windows

.\myenv\Scripts\activate
  • macOS and Linux

source myenv/bin/activate

Install module telethon

  • Windows

pip install telethon
  • macOS and Linux

pip3 install telethon

Run script

  • Windows

python bot.py
  • macOS and Linux

python3 bot.py