Layer 224
BotsCreateBot
method
bots.createBot#e5b17f2b flags:# via_deeplink:flags.0?true name:string username:string manager_id:InputUser = User;
Parameters
| Name | Type | Description |
|---|---|---|
| ViaDeeplink | flags.0?true | |
| Name | string | |
| Username | string | |
| ManagerId | InputUser |
Returns
UserGogram Example
// BotsCreateBot - using Params struct result, err := client.BotsCreateBot(&tg.BotsCreateBotParams{ Name: "Hello, World!", Username: "Hello, World!", ManagerId: &tg.InputUserSelf{}, // Optional fields: // ViaDeeplink: true, }) if err != nil { // handle error } // result is *tg.User