Skip to content

Commit

Permalink
docs(update_birthday): Fix error in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
X1A0CA1 committed Apr 7, 2024
1 parent d1e20a0 commit fd0a23a
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 fd0a23a

Please sign in to comment.