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:
227ID:
E5B17F2B
- Parameters:
name (
str) – Display name of the bot, 1–64 charactersusername (
str) – Username for the bot, as validated by bots.checkUsernamemanager_id (
InputUser) – The manager bot that will control the created bot; must have the user.bot_can_manage_bots flag setvia_deeplink (
bool, optional) – Set only if the creation prompt was opened from a managed bot creation request deep link »
- Returns: