ManagedBotUpdated¶
- class telegram.ManagedBotUpdated(user, bot, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis 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
userandbotare equal.Available In
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 methodget_managed_bot_token().
- bot[source]¶
Information about the bot. Token of the bot can be fetched using the method
get_managed_bot_token().- Type: