Skip to content
/ Userver Public

Simple telegram userbot, made in python using Telethon.

License

Notifications You must be signed in to change notification settings

r0ld3x/Userver

Repository files navigation

Userver

A Simple Userbot For Telegram made With Python And Telethon.

Table of contents

Deployment

Necessary Variables

  • API_ID -You api id, from my.telegram.org or ScrapperRoBot.
  • API_HASH - You api hash, from my.telegram.org or ScrapperRoBot.
  • SESSION - SessionString for your accounts login session. Get it from here
  • BOT_TOKEN - Make from Botfather

One of the following database:

  • For Redis (tutorial here)
    • REDIS_URI - Redis endpoint URL, from redislabs.
    • REDIS_PASS - Redis endpoint Password, from redislabs.

Deploy Locally

  • Get your Necessary Variables
  • Clone the repository:
    git clone https://github.com/r0ld3x/Userver.git
  • Go to the cloned folder: cd Userver
  • Create a virtual env:
    python3 -m virtualenv env (linux) virtualenv env (windows)
  • Activate Virtual Env source env/bin/activate
  • Install Requirements pip install -U -r requirements.txt
  • Fill your details in a config.yaml file, as given in config.yaml.sample. (You can either edit and rename the file or make a new file named config.yaml.)
  • Run the bot:
    • bash start.sh (linux)
    • .\start.bat (windows)

Session String

Different ways to get your SESSION:

Tutorial To Get Redis DB URL and Password

Redis

Process For Creating DB :-

  • Go To Redis.com and click "Try Free" in Top Right Corner.
  • Fill All The Required Details Like email, first and last name, password, etc.
  • Tick Below "I agree the corresponding...Privacy Policy." and Click "Get Started".
  • Now Check Your Email, and click the "Activate Now" sent by redislabs via email.
  • Now Login and Chose Free Plan in "Fixed Size" Area and Write any name in "Subscription Area".
  • On the Next Page Write Database Name and click Activate.

Congrats! Your DB has been created 🥳

Process For Getting DB Credentials:-

  • Wait 5 mins after DB creation.
  • Then There Would Be 2 Things Named "Endpoint" and "Access Control & Security".
  • Copy Both Of Them and Paste Endpoint url in REDIS_URI and "Access ...Security" in REDIS_PASS.

Authors

Support

License

License

Userver is licensed under GNU Affero General Public License v3 or later.


Credits


Made with 💕 by @r0ld3x.

About

Simple telegram userbot, made in python using Telethon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published