o
    Zzj½
  ã                   @   sD   d Z g d¢ZG dd„ deƒZG dd„ deeƒZG dd„ deeƒZdS )	z_This module contains classes used for warnings issued by this library.

.. versionadded:: 20.0
)ÚPTBDeprecationWarningÚPTBRuntimeWarningÚPTBUserWarningc                   @   ó   e Zd ZdZdZdS )r   zÂ
    Custom user warning class used for warnings in this library.

    .. seealso:: :wiki:`Exceptions, Warnings and Logging <Exceptions%2C-Warnings-and-Logging>`

    .. versionadded:: 20.0
    © N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   úL/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/warnings.pyr      s    r   c                   @   r   )r   ze
    Custom runtime warning class used for warnings in this library.

    .. versionadded:: 20.0
    r   Nr   r   r   r   r   r   &   s    r   c                   @   s8   e Zd ZdZdZdededdfdd„Zdefd	d
„ZdS )r   aX  
    Custom warning class for deprecations in this library.

    .. versionchanged:: 20.0
       Renamed TelegramDeprecationWarning to PTBDeprecationWarning.

    Args:
        version (:obj:`str`): The version in which the feature was deprecated.

            .. versionadded:: 21.2
        message (:obj:`str`): The message to display.

            .. versionadded:: 21.2

    Attributes:
        version (:obj:`str`): The version in which the feature was deprecated.

            .. versionadded:: 21.2
        message (:obj:`str`): The message to display.

            .. versionadded:: 21.2
    )ÚmessageÚversionr   r   ÚreturnNc                 C   s   || _ || _d S )N©r   r   )Úselfr   r   r   r   r   Ú__init__M   s   
zPTBDeprecationWarning.__init__c                 C   s   d| j › d| j› �S )z‹Returns a string representation of the warning, using :attr:`message` and
        :attr:`version`.

        .. versionadded:: 21.2
        zDeprecated since version z: r   )r   r   r   r   Ú__str__Q   s   zPTBDeprecationWarning.__str__)r   r   r	   r
   r   Ústrr   r   r   r   r   r   r   3   s
    r   N)r
   Ú__all__ÚUserWarningr   ÚRuntimeWarningr   ÚDeprecationWarningr   r   r   r   r   Ú<module>   s
   