
    ic                     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 InlineQueryResultContact.    )TYPE_CHECKING)InlineKeyboardMarkup)InlineQueryResult)JSONDict)InlineQueryResultType)InputMessageContentc                        e Zd ZdZdZ	 	 	 	 	 	 	 ddddededededz  d	edz  d
d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 )InlineQueryResultContacta
  
    Represents a contact with a phone number. By default, this contact will be sent by the user.
    Alternatively, you can use :attr:`input_message_content` to send a message with the specified
    content instead of the contact.

    .. versionchanged:: 20.5
        |removed_thumb_wildcard_note|

    Args:
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.
        phone_number (:obj:`str`): Contact's phone number.
        first_name (:obj:`str`): Contact's first name.
        last_name (:obj:`str`, optional): Contact's last name.
        vcard (:obj:`str`, optional): Additional data about the contact in the form of a vCard,
            0-:tg-const:`telegram.constants.ContactLimit.VCARD` bytes.
        reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): Inline keyboard attached
            to the message.
        input_message_content (:class:`telegram.InputMessageContent`, optional): Content of the
            message to be sent instead of the contact.
        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.CONTACT`.
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.
        phone_number (:obj:`str`): Contact's phone number.
        first_name (:obj:`str`): Contact's first name.
        last_name (:obj:`str`): Optional. Contact's last name.
        vcard (:obj:`str`): Optional. Additional data about the contact in the form of a vCard,
            0-:tg-const:`telegram.constants.ContactLimit.VCARD` bytes.
        reply_markup (:class:`telegram.InlineKeyboardMarkup`): Optional. Inline keyboard attached
            to the message.
        input_message_content (:class:`telegram.InputMessageContent`): Optional. Content of the
            message to be sent instead of the contact.
        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

    )	
first_nameinput_message_content	last_namephone_numberreply_markupthumbnail_heightthumbnail_urlthumbnail_widthvcardN
api_kwargsidr   r   r   r   r   zInputMessageContent | Noner   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   CONTACT	_unfrozenr   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   	__class__s               i/Users/shanyulin/my-agent/.venv/lib/python3.11/site-packages/telegram/_inline/inlinequeryresultcontact.pyr   z!InlineQueryResultContact.__init__f   s      	.6zRRR^^ 	A 	A%1D#-DO *3DN%*DJ=IDEZD&-:D/>D 0@D!	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	A 	As   A BBB)NNNNNNN)__name__
__module____qualname____doc__	__slots__strr   intr   r   __classcell__)r   s   @r   r
   r
       s       7 7r
I" !%48>B $(&*'+A '+A A AA A 	A
 :A +T1A  <A Tz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 -,,,,,,bA bA bA bA bA0 bA bA bA bA bAr'   