Client, Router & MultiBot API
shirdal.client.Shirdal
Main entry point for a shirdal Telegram bot or MTProto client.
on_command(names, *, prefix='/', case_sensitive=False, only_incoming=True)
Register a command handler (defaults to incoming messages with '/' prefix).
on_edit(filter_obj=None)
Register a handler for edited messages.
on_message(target=None)
Register a message handler, supporting both @bot.on_message and @bot.on_message(filter).
on_error(func)
Register a global error handler receiving (ctx, exception).
shirdal.engine.router.Router
Modular, nestable handler router (similar to aiogram's Router).
on_command(names, *, prefix='/', case_sensitive=False, only_incoming=True)
Register a command handler (defaults to incoming messages with '/' prefix).
shirdal.multi.MultiBot
Manage and run multiple SelfBot accounts concurrently under one control plane.
use(middleware)
Register a shared middleware across all current and future accounts.
on(filter_obj=None)
Register a shared handler across all current and future accounts.