bots.createBot
No description available.
func (c *Client) BotsCreateBot(ctx context.Context, request *BotsCreateBotRequest) (UserClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.BotsCreateBot(ctx, &tg.BotsCreateBotRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UserClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ViaDeeplink | bool | — | ViaDeeplink field of BotsCreateBotRequest. |
Name | string | yes | Name field of BotsCreateBotRequest. |
Username | string | yes | Username field of BotsCreateBotRequest. |
ManagerID | InputUserClass | yes | ManagerID field of BotsCreateBotRequest. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
bots.createBot#e5b17f2b