pyUltroid

py-Ultroid Library#

A stable userbot base library, based on Telethon.

PyPI - Version PyPI - Downloads

Installation#

pip install py-Ultroid

Usage#

=> Create folders named plugins, addons, assistant and resources.
=> Add your plugins in the plugins folder and others accordingly.
=> Create a .env file with

  • API_ID
  • API_HASH
  • SESSION
  • BOT_TOKEN
  • BOT_USERNAME
  • REDIS_URI
  • REDIS_PASSWORD
  • LOG_CHANNEL as mandatory environment variables. Check .env.sample for more details.
    => Run python -m pyUltroid to start the bot.

Creating plugins#

To work everywhere

@ultroid_cmd(
pattern="start",
)
async def _(e):
await eor(e, "Ultroid Started")

To work only in groups

@ultroid_cmd(
pattern="start",
groups_only=True,
)
async def _(e):
await eor(e, "Ultroid Started")

Assistant Plugins 👇

@asst_cmd("start")
async def _(e):
await e.reply("Ultroid Started")