Layer 224
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

User

Gogram 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