Merge pull request #60 from X1A0CA1/main

docs(update_birthday): Fix error in examples
This commit is contained in:
2024-04-08 18:08:26 +07:00 committed by GitHub
commit 849be50c95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,8 @@ class UpdateBirthday:
.. code-block:: python
# Update your birthday to 1st January 2000
await app.update_profile(day=1, month=1, year=2000)
# 1874/01/01(YMD) is the earliest date, earlier will raise 400 Bad Request BIRTHDAY_INVALID.
await app.update_birthday(day=1, month=1, year=2000)
"""
birthday = types.Birthday(day=day, month=month, year=year)
birthday = await birthday.write()