rawal01singhbhati / clonebotnewtype

A simple telegram bot to clone Medias from one chat to another

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple telegram bot to clone Medias from one chat to another

Note:

  • Bot need to be an admin of the source and destination Chats.
  • String session user doesn't need to be an admin of both ends.
  • String session user should not be banned in the source chat.
  • Don't create the string session from an admin account. Session user will leave the chat at the end 😂

Requirements:

TG_BOT_TOKEN    - Get from @BotFather
APP_ID          - Get from my.telegram.org
API_HASH        - Get from my.telegram.org
TG_USER_SESSION - Run any userbot session maker (https://repl.it/@ayrahikari/pyrogram-session-maker)

@BotFather Command:

/help - To know how to use the bot
/source - Set source chat Id ( /source -1001234567890 )
/destination - Set destination chat Id ( /destination -1009876543210)
/view - To view the current stored chat configuration
/delconfig - To clear the stored chat configuration
/clone - Clone medias from source to destination chat

Deploy Easy Way:

Deploy

Deploy Hard Way:

Create config.py with variables as given below Refer sample.config

class Config(object):
    TG_BOT_TOKEN = "134448596:AAEIyo3EBVCN3qdd3TfrmQUxoI-eZVGvmI"
    APP_ID = int(123635)
    API_HASH = "1a417dd4fdf3ead2819ff35641daa16b"
    TG_USER_SESSION = "BQDGRUC0_qw2GVQ2gpLFaXOt0mrWg16cBZPATQvR8KThDzi-NRE1I9DB......"

User session string can be generated from HERE

Run the following:

virtualenv -p python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 main.py

LICENSE

Credits:

DAN for his Pyrogram Library

SpEcHiDe for his DeleteMessagesRoBot

Creator :

Mallu Boy In Telegram - AS

About

A simple telegram bot to clone Medias from one chat to another


Languages

Language:Python 99.9%Language:Procfile 0.1%