ManagedBotUpdated

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

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.

Added in version 22.8.

Parameters:
user[source]

User that created the bot.

Type:

telegram.User

bot[source]

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)[source]

See telegram.TelegramObject.de_json().