o
    Zzj	  ã                   @   sT   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 G dd„ deƒZd	S )
zKThis module contains the classes that represent Telegram InlineQueryResult.é    )ÚFinal)Ú	constants)ÚTelegramObject)Úenum)ÚJSONDictc                       sh   e Zd ZU dZdZddœdedededB f‡ fdd	„Zej	j
Z
ee ed
< 	 ej	jZee ed< ‡  ZS )ÚInlineQueryResulta™  Baseclass for the InlineQueryResult* classes.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`id` is equal.

    Note:
        All URLs passed in inline query results will be available to end users and therefore must
        be assumed to be *public*.

    Examples:
        :any:`Inline Bot <examples.inlinebot>`

    Args:
        type (:obj:`str`): Type of the result.
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.

    Attributes:
        type (:obj:`str`): Type of the result.
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.

    )ÚidÚtypeN©Ú
api_kwargsr	   r   r   c                   s@   t ƒ j|d� t tj||¡| _t|ƒ| _| jf| _	|  
¡  d S )Nr
   )ÚsuperÚ__init__r   Ú
get_memberr   ÚInlineQueryResultTyper	   Ústrr   Ú	_id_attrsÚ_freeze)Úselfr	   r   r   ©Ú	__class__© ú]/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_inline/inlinequeryresult.pyr   ;   s
   

zInlineQueryResult.__init__ÚMIN_ID_LENGTHÚMAX_ID_LENGTH)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   r   ÚInlineQueryResultLimitr   r   ÚintÚ__annotations__r   Ú__classcell__r   r   r   r   r      s   
 $r   N)r   Útypingr   Útelegramr   Útelegram._telegramobjectr   Útelegram._utilsr   Útelegram._utils.typesr   r   r   r   r   r   Ú<module>   s   