ManagedBotHandler¶
- class pyrogram.handlers.ManagedBotHandler
Bases:
HandlerThe ManagedBot handler class. Used to handle managed bot updates.
It is intended to be used with
add_handler()For a nicer way to register this handler, have a look at the
on_managed_bot()decorator.- Parameters:
callback (
Callable) – Pass a function that will be called when a managed bot update arrives. It takes (client, managed_bot) as positional arguments.filters (
Filters) – Pass one or more filters to allow only a subset of updates to be passed in your callback function.
- Other Parameters:
client (
Client) – The Client itself, useful when you want to call other API methods inside the handler.managed_bot (
ManagedBot) – The received managed bot update containing user_id, bot_id and optionally the full bot User object.