bots.ExportBotToken

class pyrogram.raw.functions.bots.ExportBotToken[source]

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

Usable by Users Bots
Details:
  • Layer: 229

  • 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