U
    g                     @   sh   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 erTddlmZ G dd	 d	eZd
S )zRThis module contains the classes that represent Telegram InlineQueryResultArticle.    )TYPE_CHECKINGOptional)InlineKeyboardMarkup)InlineQueryResult)JSONDict)InlineQueryResultType)InputMessageContentc                       sf   e Zd ZdZdZd	ddeedee ee ee ee ee ee	 ee	 ee
 d fddZ  ZS )
InlineQueryResultArticlea	  This object represents a Telegram InlineQueryResultArticle.

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

    .. versionchanged:: 20.5
      Removed the deprecated arguments and attributes ``thumb_*``.

    Args:
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.
        title (:obj:`str`): Title of the result.
        input_message_content (:class:`telegram.InputMessageContent`): Content of the message to
            be sent.
        reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): Inline keyboard attached
            to the message.
        url (:obj:`str`, optional): URL of the result.
        hide_url (:obj:`bool`, optional): Pass :obj:`True`, if you don't want the URL to be shown
            in the message.
        description (:obj:`str`, optional): Short description of the result.
        thumbnail_url (:obj:`str`, optional): Url of the thumbnail for the result.

            .. versionadded:: 20.2
        thumbnail_width (:obj:`int`, optional): Thumbnail width.

            .. versionadded:: 20.2
        thumbnail_height (:obj:`int`, optional): Thumbnail height.

            .. versionadded:: 20.2

    Attributes:
        type (:obj:`str`): :tg-const:`telegram.constants.InlineQueryResultType.ARTICLE`.
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.
        title (:obj:`str`): Title of the result.
        input_message_content (:class:`telegram.InputMessageContent`): Content of the message to
            be sent.
        reply_markup (:class:`telegram.InlineKeyboardMarkup`): Optional. Inline keyboard attached
            to the message.
        url (:obj:`str`): Optional. URL of the result.
        hide_url (:obj:`bool`): Optional. Pass :obj:`True`, if you don't want the URL to be shown
            in the message.
        description (:obj:`str`): Optional. Short description of the result.
        thumbnail_url (:obj:`str`): Optional. Url of the thumbnail for the result.

            .. versionadded:: 20.2
        thumbnail_width (:obj:`int`): Optional. Thumbnail width.

            .. versionadded:: 20.2
        thumbnail_height (:obj:`int`): Optional. Thumbnail height.

            .. versionadded:: 20.2

    )	descriptionhide_urlinput_message_contentreply_markupthumbnail_heightthumbnail_urlthumbnail_widthtitleurlN
api_kwargsr   )idr   r   r   r   r   r
   r   r   r   r   c             	      sb   t  jtj||d |  < || _|| _|| _|| _|| _	|| _
|| _|	| _|
| _W 5 Q R X d S )Nr   )super__init__r   ZARTICLEZ	_unfrozenr   r   r   r   r   r
   r   r   r   )selfr   r   r   r   r   r   r
   r   r   r   r   	__class__ M/tmp/pip-unpacked-wheel-swnnwir2/telegram/_inline/inlinequeryresultarticle.pyr   f   s    
z!InlineQueryResultArticle.__init__)NNNNNNN)__name__
__module____qualname____doc__	__slots__strr   r   boolintr   r   __classcell__r   r   r   r   r	       s0   9       r	   N)r    typingr   r   Z%telegram._inline.inlinekeyboardmarkupr   Z"telegram._inline.inlinequeryresultr   Ztelegram._utils.typesr   Ztelegram.constantsr   Ztelegramr   r	   r   r   r   r   <module>   s   