bots.CreateBot#

class pyrogram.raw.functions.bots.CreateBot#

Create a managed bot owned by the current user and controlled by the specified manager bot.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: E5B17F2B

Parameters:
  • name (str) – Display name of the bot, 1–64 characters

  • username (str) – Username for the bot, as validated by bots.checkUsername

  • manager_id (InputUser) – The manager bot that will control the created bot; must have the user.bot_can_manage_bots flag set

  • via_deeplink (bool, optional) – Set only if the creation prompt was opened from a managed bot creation request deep link »

Returns:

User