bots.ExportBotToken#

class pyrogram.raw.functions.bots.ExportBotToken#

Export the bot token of a managed bot; can only be called by the manager bot.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: BD0D99EB

Parameters:
  • bot (InputUser) – The managed bot to export the token for

  • revoke (bool) – If boolTrue, revoke the current token and generate a new one

Returns:

bots.ExportedBotToken