Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.16 KB

README.md

File metadata and controls

54 lines (35 loc) · 2.16 KB

INFO

This userbot working on properly Railway.app !

TelegramUserBot ❤️️

Sourcery

Deploy To Heroku Gitpod Online
Deploy Open in Gitpod

DeepSource

DeepSource                  DeepSource

Setting Up Locally 👇🏻

  • Fill in the required fields in "sample_config.py"

  • Install the required libraries with requirements.txt. ( pip3 install -r requirements.txt )

  • And then start the bot. ( python3 -m userbot )

  • If you did it correctly, the bot will run successfully.

Create String Session

Run on Repl.it

Example Plugin

from  datetime  import  datetime
from userbot import bot
from userbot.util import admin_cmd

@bot.on(admin_cmd(pattern="ping"))
async def ping(event):
  start  =  datetime.now()
  await  event.edit("Pong!")
  end  =  datetime.now()
  ms  = (end  -  start).microseconds  /  1000
  await  event.edit("Pong!\n`{}`".format(ms))

Contact ✍️

If you run into any problems, feel free to let me know. You can contact me using this link.

License ⚠️