o
    -˜Žj¬  ã                   @   s*   d dl Z d dl mZmZ G dd„ dƒZdS )é    N)ÚrawÚtypesc                   @   s.   e Zd Z	d
dddedededef
dd	„ZdS )ÚUpdateBirthdayNÚselfzpyrogram.ClientÚdayÚmonthÚyearÚreturnc                 Ã   sH   �t j|||d�}| ¡ I dH }|  tjjj|d�¡I dH }|r"dS dS )a‹  Update your birthday details.

        .. include:: /_includes/usable-by/users.rst

        Parameters:
            day (``int``):
                Day of birth.

            month (``int``):
                Month of birth.

            year (``int``, *optional*):
                Year of birth.

        Returns:
            ``bool``: True on success.

        Example:
            .. code-block:: python

                # Update your birthday to 1st January 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)
        )r   r   r   N)ÚbirthdayTF)r   ÚBirthdayÚwriteÚinvoker   Ú	functionsÚaccountr   )r   r   r   r   r
   Úr© r   úc/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/users/update_birthday.pyÚupdate_birthday   s   €zUpdateBirthday.update_birthday)N)Ú__name__Ú
__module__Ú__qualname__ÚintÚboolr   r   r   r   r   r      s    üÿþýüûr   )Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   