Skip to content
View Mpriyanshu's full-sized avatar

Block or report Mpriyanshu

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Mpriyanshu/README.md
  • 👋 Hi, I’m @Mpriyanshu
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

from userge import userge, Message, filters

LOG = userge.getLogger(name) # logger object CHANNEL = userge.getCLogger(name) # channel logger object

add command handler

@userge.on_cmd("test", about="help text to this command") async def test_cmd(message: Message): LOG.info("starting test command...") # log to console

some other stuff

await message.edit("testing...", del_in=5) # this will be automatically deleted after 5 sec

some other stuff

await CHANNEL.log("testing completed!") # log to channel

add filters handler

@userge.on_filters(filters.me & filters.private) # filter my private messages async def test_filter(message: Message): LOG.info("starting filter command...")

some other stuff

await message.reply(f"you typed - {message.text}", del_in=5)

some other stuff

await CHANNEL.log("filter executed!")

Popular repositories Loading

  1. Mpriyanshu Mpriyanshu Public

    Config files for my GitHub profile.

  2. Userge-Plugins Userge-Plugins Public

    Forked from UsergeTeam/Userge-Plugins

    UnOfficial Plugins for Userge

    Python