Layer 220
AccountUpdateBirthday
Update our birthday, see here for more info.
method
Users
account.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Birthday | flags.0?Birthday | Birthday. |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BIRTHDAY_INVALID | An invalid age was specified, must be between 0 and 150 years. |
Gogram Example
// AccountUpdateBirthday - using Params struct result, err := client.AccountUpdateBirthday(&tg.AccountUpdateBirthdayParams{ // Optional fields: // Birthday: &tg.Birthday{}, }) if err != nil { // handle error } // result is *tg.Bool