MultiUserbot

by GodSaveTheDoge

GitHub Readme.md

MultiUserbot

A Telegram Userbot to do cool stuff

Python 3.6 Codacy Badge GitHub repo size HitCount Contact Me

Getting started with heroku

Requirements

  •   $ python -V
      Python 3.x.y
  • An Heroku account

  • Pyrogram installed

    pip install pyrogram tgcrypto

Get your api id and api hash

Go to Telegram Site and login, then go to the apps page.

If needed, compile the form and make an app.

Get your session string

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()'#### Deploy

replace 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

Deploy to heroku

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.

Deploy

Getting started with your hosting (or your pc)

Requirements

  • Python 3.6.0 or higher (3.8.2 suggested)

      $ python -V
      Python 3.x.y

Clone this repository (or download the zip and unzip it)

git clone https://github.com/GodSaveTheDoge/MultiUserbot.git

Change directory

cd MultiUserbot

Install libraries

pip install -r requirements.txt

Get your api id and api hash

Go to Telegram Site and login, then go to the apps page.

If needed, compile the form and make an app.

Modify the config file

Open config.ini with your favourite editor and put your api id and api hash (line 2 and 3)

Read How To Use Plugins

Run the bot

python main.py 

Contact me