Ë
    S"“jƒ  ã                   óp   — d dl mZmZ ddl mZ ddlmZ 	 ddlZddl	Z	ddl
Z
 G d„ d«      Zy# e$ r Y Œw xY w)	é   )ÚtypesÚ	functionsé   )Úpassword)ÚBotResponseTimeoutErroré    Nc                   óv   — e Zd ZdZd„ Zed„ «       Zed„ «       Zed„ «       Zed„ «       Z	ed„ «       Z
dddd	œd
„Zy)ÚMessageButtona+  
    .. note::

        `Message.buttons <telethon.tl.custom.message.Message.buttons>`
        are instances of this type. If you want to **define** a reply
        markup for e.g. sending messages, refer to `Button
        <telethon.tl.custom.button.Button>` instead.

    Custom class that encapsulates a message button providing
    an abstraction to easily access some commonly needed features
    (such as clicking the button itself).

    Attributes:

        button (:tl:`KeyboardButton`):
            The original :tl:`KeyboardButton` object.
    c                 óJ   — || _         || _        || _        || _        || _        y )N)ÚbuttonÚ_botÚ_chatÚ_msg_idÚ_client)ÚselfÚclientÚoriginalÚchatÚbotÚmsg_ids         úa/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/tl/custom/messagebutton.pyÚ__init__zMessageButton.__init__   s%   € ØˆŒØˆŒ	ØˆŒ
ØˆŒØˆ�ó    c                 ó   — | j                   S )zz
        Returns the `telethon.client.telegramclient.TelegramClient`
        instance that created this instance.
        )r   ©r   s    r   r   zMessageButton.client%   s   € ð �|‰|Ðr   c                 ó.   — | j                   j                  S )zThe text string of the button.)r   Útextr   s    r   r   zMessageButton.text-   s   € ð �{‰{×ÑÐr   c                 óx   — t        | j                  t        j                  «      r| j                  j                  S y)z:The `bytes` data for :tl:`KeyboardButtonCallback` objects.N)Ú
isinstancer   r   ÚKeyboardButtonCallbackÚdatar   s    r   r!   zMessageButton.data2   s.   € ô �d—k‘k¤5×#?Ñ#?Ô@Ø—;‘;×#Ñ#Ð#ð Ar   c                 óx   — t        | j                  t        j                  «      r| j                  j                  S y)z=The query `str` for :tl:`KeyboardButtonSwitchInline` objects.N)r   r   r   ÚKeyboardButtonSwitchInlineÚqueryr   s    r   Úinline_queryzMessageButton.inline_query8   s.   € ô �d—k‘k¤5×#CÑ#CÔDØ—;‘;×$Ñ$Ð$ð Er   c                 óx   — t        | j                  t        j                  «      r| j                  j                  S y)z2The url `str` for :tl:`KeyboardButtonUrl` objects.N)r   r   r   ÚKeyboardButtonUrlÚurlr   s    r   r(   zMessageButton.url>   s+   € ô �d—k‘k¤5×#:Ñ#:Ô;Ø—;‘;—?‘?Ð"ð <r   N)r   Úopen_urlc             ƒ   óÐ  K  — t        | j                  t        j                  «      rD| j                  j                  | j                  | j                  j                  d¬«      ƒ d{  –—† S t        | j                  t        j                  «      r²|�K| j	                  t        j                  j                  «       «      ƒ d{  –—† }t        j                  ||«      }t        j                  j                  | j                  | j                   | j                  j"                  |¬«      }	 | j	                  |«      ƒ d{  –—† S t        | j                  t        j&                  «      ra| j	                  t        j                  j)                  | j*                  | j                  | j                  j,                  ¬«      «      ƒ d{  –—† S t        | j                  t        j.                  «      rS|r;dt0        j2                  v r)t5        j6                  | j                  j8                  «      S | j                  j8                  S t        | j                  t        j:                  «      rPt        j                  j                  | j                  | j                   d¬«      }	 | j	                  |«      ƒ d{  –—† S t        | j                  t        j<                  «      r¸|st?        d«      ‚|dk(  st        |t@        «      rh| j                  jC                  «       ƒ d{  –—† }t        jD                  |dk(  r|jF                  n||jH                  xs d	|jJ                  xs d	d	¬
«      }| j                  jM                  | j                  |«      ƒ d{  –—† S t        | j                  t        jN                  «      r€|st?        d«      ‚t        |tP        tR        f«      r/|\  }}	t        jT                  t        jV                  |	|¬«      «      }| j                  jM                  | j                  |«      ƒ d{  –—† S y7 �ŒÌ7 �Œt7 �Œü# t$        $ r Y yw xY w7 �Œ‰7 �Œ¡# t$        $ r Y yw xY w7 �ŒK7 ŒÙ7 Œ7­w)aó  
        Emulates the behaviour of clicking this button.

        If it's a normal :tl:`KeyboardButton` with text, a message will be
        sent, and the sent `Message <telethon.tl.custom.message.Message>` returned.

        If it's an inline :tl:`KeyboardButtonCallback` with text and data,
        it will be "clicked" and the :tl:`BotCallbackAnswer` returned.

        If it's an inline :tl:`KeyboardButtonSwitchInline` button, the
        :tl:`StartBotRequest` will be invoked and the resulting updates
        returned.

        If it's a :tl:`KeyboardButtonUrl`, the ``URL`` of the button will
        be returned. If you pass ``open_url=True`` the URL of the button will
        be passed to ``webbrowser.open`` and return `True` on success.

        If it's a :tl:`KeyboardButtonRequestPhone`, you must indicate that you
        want to ``share_phone=True`` in order to share it. Sharing it is not a
        default because it is a privacy concern and could happen accidentally.

        You may also use ``share_phone=phone`` to share a specific number, in
        which case either `str` or :tl:`InputMediaContact` should be used.

        If it's a :tl:`KeyboardButtonRequestGeoLocation`, you must pass a
        tuple in ``share_geo=(longitude, latitude)``. Note that Telegram seems
        to have some heuristics to determine impossible locations, so changing
        this value a lot quickly may not work as expected. You may also pass a
        :tl:`InputGeoPoint` if you find the order confusing.
        N)Ú
parse_mode)Úpeerr   r!   r   )r   r,   Ústart_paramÚ
webbrowserT)r,   r   Úgamez5cannot click on phone buttons unless share_phone=TrueÚ )Úphone_numberÚ
first_nameÚ	last_nameÚvcardzBcannot click on geo buttons unless share_geo=(longitude, latitude))ÚlatÚlong),r   r   r   ÚKeyboardButtonr   Úsend_messager   r   r    r   ÚaccountÚGetPasswordRequestÚpwd_modÚcompute_checkÚmessagesÚGetBotCallbackAnswerRequestr   r!   r   r#   ÚStartBotRequestr   r$   r'   ÚsysÚmodulesr.   Úopenr(   ÚKeyboardButtonGameÚKeyboardButtonRequestPhoneÚ
ValueErrorÚstrÚget_meÚInputMediaContactÚphoner2   r3   Ú	send_fileÚ KeyboardButtonRequestGeoLocationÚtupleÚlistÚInputMediaGeoPointÚInputGeoPoint)
r   Úshare_phoneÚ	share_geor   r)   ÚpwdÚreqÚmer6   r5   s
             r   ÚclickzMessageButton.clickD   sb  è ø€ ô> �d—k‘k¤5×#7Ñ#7Ô8ØŸ™×2Ñ2Ø—
‘
˜DŸK™K×,Ñ,¸ð 3ó ?÷ ?ð ?ä˜Ÿ™¤U×%AÑ%AÔBØÐ#Ø ŸL™L¬×):Ñ):×)MÑ)MÓ)OÓP×P�Ü"×0Ñ0°°hÓ?�ä×$Ñ$×@Ñ@Ø—Z‘Z¨¯©¸4¿;¹;×;KÑ;KØ!ð Aó ˆCðØ!Ÿ\™\¨#Ó.×.Ð.ô ˜Ÿ™¤U×%EÑ%EÔFØŸ™¤i×&8Ñ&8×&HÑ&HØ—I‘I D§J¡J¸D¿K¹K×<MÑ<Mð 'Ió 'ó ÷ ð ô ˜Ÿ™¤U×%<Ñ%<Ô=ÙØ¤3§;¡;Ñ.Ü%Ÿ?™?¨4¯;©;¯?©?Ó;Ð;Ø—;‘;—?‘?Ð"Ü˜Ÿ™¤U×%=Ñ%=Ô>Ü×$Ñ$×@Ñ@Ø—Z‘Z¨¯©¸4ð Aó ˆCðØ!Ÿ\™\¨#Ó.×.Ð.ô ˜Ÿ™¤U×%EÑ%EÔFÙÜ Ð!XÓYÐYà˜dÒ"¤j°¼cÔ&BØŸ<™<×.Ñ.Ó0×0�Ü#×5Ñ5Ø-8¸DÒ-@ §¢ÀkØ!Ÿ}™}Ò2°Ø Ÿl™lÒ0¨bØô	�ð Ÿ™×/Ñ/°·
±
¸KÓH×HÐHÜ˜Ÿ™¤U×%KÑ%KÔLÙÜ Ð!eÓfÐfä˜)¤e¬T ]Ô3Ø%‘	��cÜ!×4Ñ4´U×5HÑ5HÈSÐW[Ô5\Ó]�	àŸ™×/Ñ/°·
±
¸IÓF×FÐFð Mð]?ùð Qùð /úÜ*ò Ùðúðùð /úÜ*ò Ùðúð 1ùð Iøð GúsÓ   ‚A$Q&Á&P2Á'AQ&ÃP5ÃA%Q&Ä(P; Ä<P8Ä=P; Å BQ&ÇQ
ÇCQ&ÊQ Ê,QÊ-Q Ê0A$Q&ÌQÌA3Q&ÎQ"Î	B#Q&Ð,Q$Ð-Q&Ð5Q&Ð8P; Ð;	QÑQ&ÑQÑQ&ÑQ Ñ	QÑQ&ÑQÑQ&Ñ"Q&Ñ$Q&)NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   r   r!   r%   r(   rU   © r   r   r
   r
      sƒ   „ ñò"ð ñó ðð ñ ó ð ð ñ$ó ð$ð
 ñ%ó ð%ð
 ñ#ó ð#ð
VGÈÐW[õ VGr   r
   )r0   r   r   r   r;   Úerrorsr   r.   ÚModuleNotFoundErrorr@   Úosr
   r[   r   r   ú<module>r_      s@   ðß Ý #Ý -ð	Ûó Û 	÷NGò NGøð ò 	Ùð	ús   –- ­5´5