A Telegram Userbot to do cool stuff
-
$ python -V Python 3.x.y
-
A Heroku account
-
Pyrogram installed
pip install pyrogram tgcrypto
Go to Telegram Site and login, then go to the apps page.
If needed, compile the form and make an app.
Either download generate_session.py or run
python -c 'from pyrogram import Client as c; b=c(":memory", api_id=YOURAPIID, api_hash="YOURAPIHASH");b.start();print("Your session string ->", b.export_session_string());b.stop()'#### Deployreplace YOURAPIID with, well, you api id and YOURAPIHASH with your api hash.
the output will be something like:
$ python -c 'from pyrogram import Client as c; b=c(":memory", api_id=123456, api_hash="abcdef1gh93");b.start();print("Your session string ->", b.export_session_string());b.stop()'
Pyrogram v0.17.1, Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
Enter phone number or bot token: +11234567890
Is "+11234567890" correct? (y/N): y
The confirmation code has been sent via Telegram app
Enter confirmation code: 123456
Your session string -> 5ckRLf2ZM4WioP1TSyS4G1xWGCzHKVu0di2Sqsehsqih4wwvQcAor/VQo+LjPHXoweqitSXzUaDeRqyILaR0by+Bpmb8uCIrfNuutKsqcsgOh0YEPr0GaEjHzDavEuYOIpWEhQ==
$where 5ckRLf2ZM4WioP1TSyS4.....WEhQ== is your session string
Click this button and, if needed, login.
Then put the session_string in the form, click deploy and it should be running!
Not that it takes a minute or so.
-
Python 3.6.0 or higher (3.8.2 suggested)
$ python -V Python 3.x.y
git clone https://github.com/GodSaveTheDoge/MultiUserbot.git
cd MultiUserbot
pip install -r requirements.txt
Go to Telegram Site and login, then go to the apps page.
If needed, compile the form and make an app.
Open config.ini with your favourite editor and put your api id and api hash (line 2 and 3)
Read How To Use Plugins
python main.py - Telegram profile (Currently unactive, I'm more active here)
- Telegram channel