set_birthdate()

Client.set_birthdate()

Changes the birthdate of the current user.

Usable by Users Bots
Parameters:

birthdate (:obj:`~pyrogram.types.Birthdate`, *optional*) – The new value of the current user’s birthdate; pass None to remove the birthdate

Returns:

``bool`` (True on success.)

Example

# Update your birthdate
await app.set_birthdate(birthdate=types.Birthdate(
    day=15,
    month=12,
    year=2017
))

# Remove your birthdate
await app.set_birthdate()