Skip to content
Back to top
View this page

# ManagedBotUpdated

class telegram.ManagedBotUpdated(user, bot, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object contains information about the creation, token update, or owner update of a bot that is managed by the current bot.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `user` and `bot` are equal.

  Available In

  `telegram.Update.managed_bot`

  Added in version 22.8.

  Parameters:

    - user (`telegram.User`) – User that created the bot.

    - bot (`telegram.User`) – Information about the bot. Token of the bot can be fetched using the method `get_managed_bot_token()`.

  user

    User that created the bot.

    Type:

      `telegram.User`

  bot

    Information about the bot. Token of the bot can be fetched using the method `get_managed_bot_token()`.

    Type:

      `telegram.User`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.