
    i                     r    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
 erddlmZ  G d d	e          Zd
S )zRThis module contains the classes that represent Telegram InlineQueryResultArticle.    )TYPE_CHECKING)InlineKeyboardMarkup)InlineQueryResult)JSONDict)InlineQueryResultType)InputMessageContentc                        e Zd ZdZdZ	 	 	 	 	 	 ddddededdd	edz  d
edz  dedz  dedz  dedz  dedz  dedz  f fdZ	 x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_*``.

    .. versionchanged:: 21.11
        Removed the deprecated argument and attribute ``hide_url``.

    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.

            Tip:
                Pass an empty string as URL 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.
        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input_message_contentreply_markupthumbnail_heightthumbnail_urlthumbnail_widthtitleurlN
api_kwargsidr   r   r   r   r   r   r   r   r   r   c
                .   t                                          t          j        ||
           |                                 5  || _        || _        || _        || _        || _	        || _
        || _        |	| _        d d d            d S # 1 swxY w Y   d S )Nr   )super__init__r   ARTICLE	_unfrozenr   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   	__class__s              i/Users/shanyulin/my-agent/.venv/lib/python3.11/site-packages/telegram/_inline/inlinequeryresultarticle.pyr   z!InlineQueryResultArticle.__init__g   s     	.6zRRR^^ 
	A 
	A#DJ>SD& >JD#&DH+6D-:D/>D 0@D!
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	A 
	As   9B

BB)NNNNNN)__name__
__module____qualname____doc__	__slots__strr   intr   r   __classcell__)r   s   @r   r
   r
       s       9 9v	I  59"&$(&*'+A '+A A AA A  5	A
 +T1A 4ZA 4ZA TzA tA *A tOA A A A A A A A A A    r
   N)r!   typingr   %telegram._inline.inlinekeyboardmarkupr   "telegram._inline.inlinequeryresultr   telegram._utils.typesr   telegram.constantsr   telegramr   r
    r&   r   <module>r.      s   & Y X             F F F F F F @ @ @ @ @ @ * * * * * * 4 4 4 4 4 4 -,,,,,,aA aA aA aA aA0 aA aA aA aA aAr&   