update_birthday()

async Client.update_birthday()

Update birthday in your profile.

Calling it with no arguments removes the birthday from your profile.

Usable by Users Bots
Parameters:
  • day (int, optional) – Birthday day. Required together with month when setting a birthday.

  • month (int, optional) – Birthday month. Required together with day when setting a birthday.

  • year (int, optional) – Birthday year.

Returns:

bool – True on success.

Raises:

ValueError – If only some of the arguments are given.

Example

# Update your birthday
await app.update_birthday(day=1, month=1, year=2000)

# Remove birthday from profile
await app.update_birthday()