Skip to main content

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

NameTypeRequiredDescription
ViaDeeplinkboolViaDeeplink field of BotsCreateBotRequest.
NamestringyesName field of BotsCreateBotRequest.
UsernamestringyesUsername field of BotsCreateBotRequest.
ManagerIDInputUserClassyesManagerID field of BotsCreateBotRequest.

Returns

UserClass

References