Layer 227
RequestPeerTypeCreateBot
Used in a keyboard Button Request Peer by a manager bot to ask a user to create a new managed bot, see here for more info.
constructor
requestPeerTypeCreateBot#3e81e078 flags:# bot_managed:flags.0?true suggested_name:flags.1?string suggested_username:flags.2?string = RequestPeerType;
Parameters
| Name | Type | Description |
|---|---|---|
| BotManaged | flags .0? true | If set, requests to create a managed bot; must always be set. |
| SuggestedName | flags .1? string | If set, the name to pre-fill in the managed bot creation flow |
| SuggestedUsername | flags .2? string | If set, the username to pre-fill in the managed bot creation flow |
Returns
RequestPeerTypeGogram Example
// Creating RequestPeerTypeCreateBot constructor obj := &tg.RequestPeerTypeCreateBot{ BotManaged: nil, SuggestedName: "Hello, World!", SuggestedUsername: "Hello, World!", }