mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Merge pull request #60 from X1A0CA1/main
docs(update_birthday): Fix error in examples
This commit is contained in:
commit
849be50c95
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue