Skip to main content

account.updateBirthday

Update our birthday, see here » for more info.

func (c *Client) AccountUpdateBirthday(ctx context.Context, request *AccountUpdateBirthdayRequest) (bool, error)

Calling this method​

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountUpdateBirthday(ctx, &tg.AccountUpdateBirthdayRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters​

NameTypeRequiredDescription
BirthdayBirthday—Birthday.

Returns​

bool

Possible errors​

CodeTypeDescription
400BIRTHDAY_INVALIDAn invalid age was specified, must be between 0 and 150 years.

References​