requestPeerTypeCreateBot

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

اسکیمای سازنده از لایه 224 در دسترس است. تغییر »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
bot_managed flags.0?true If set, requests to create a managed bot; must always be set.
suggested_name flags.1?string If set, the name to pre-fill in the managed bot creation flow
suggested_username flags.2?string If set, the username to pre-fill in the managed bot creation flow

Type

RequestPeerType

Related pages

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.