U
    g                     @   sX   d Z ddlmZ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Optional)	constants)TelegramObject)enum)JSONDictc                       sb   e Zd ZU dZdZddeeee d 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_kwargs)r
   r	   r   c                   s@   t  j|d ttj||| _t|| _| jf| _	| 
  d S )Nr   )super__init__r   Z
get_memberr   ZInlineQueryResultTyper
   strr	   Z	_id_attrsZ_freeze)selfr
   r	   r   	__class__ F/tmp/pip-unpacked-wheel-swnnwir2/telegram/_inline/inlinequeryresult.pyr   ;   s
    

zInlineQueryResult.__init__MIN_ID_LENGTHMAX_ID_LENGTH)__name__
__module____qualname____doc__	__slots__r   r   r   r   r   ZInlineQueryResultLimitr   r   int__annotations__r   __classcell__r   r   r   r   r      s   
 r   N)r   typingr   r   Ztelegramr   Ztelegram._telegramobjectr   Ztelegram._utilsr   Ztelegram._utils.typesr   r   r   r   r   r   <module>   s   