Skip to content

Commit

Permalink
Merge pull request #60 from X1A0CA1/main
Browse files Browse the repository at this point in the history
docs(update_birthday): Fix error in examples
  • Loading branch information
wulan17 committed Apr 8, 2024
2 parents d1e20a0 + fd0a23a commit 849be50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyrogram/methods/users/update_birthday.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ async def update_birthday(
.. 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()
Expand Down

0 comments on commit 849be50

Please sign in to comment.