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
| Name | Type | Required | Description |
|---|---|---|---|
Birthday | Birthday | — | Birthday. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BIRTHDAY_INVALID | An invalid age was specified, must be between 0 and 150 years. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.updateBirthday#cc6e0c11