requestPeerTypeCreateBot #

Used in a keyboardButtonRequestPeer by a manager bot to ask a user to create a new managed bot », see here » for more info.

Layer 223

Constructor schema is available as of layer 224. Switch »

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
bot_managedflags.0?trueIf set, requests to create a managed bot; must always be set.
suggested_nameflags.1?stringIf set, the name to pre-fill in the managed bot creation flow
suggested_usernameflags.2?stringIf set, the username to pre-fill in the managed bot creation flow

Type #

RequestPeerType

keyboardButtonRequestPeer #

Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer

Available only in private chats, in reply keyboards.

See peer requests for the full flow.

Managed bots #

Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.

Bot buttons #

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.