bots.CreateBot¶
- class pyrogram.raw.functions.bots.CreateBot[source]¶
Create a managed bot » owned by the current user and controlled by the specified manager bot.
Usable by Users Bots- Details:
Layer:
229ID:
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_botsflag setvia_deeplink (
bool, optional) – Set only if the creation prompt was opened from a managed bot creation request deep link »
- Returns: