Ë
    :É„jV	  ã                   óD   — d dl mZ d dlZd dlmZ d dlmZ  G d„ d«      Zy)é    )ÚUnionN)Úraw)Útypesc                   ó.   — e Zd Zdddeeef   deddfd„Zy)	ÚGetDiscussionMessageÚselfzpyrogram.ClientÚchat_idÚ
message_idÚreturnztypes.Messagec              ƒ   óÚ  K  — | j                  t        j                  j                  j	                  | j                  |«      ƒ d{  –—† |¬«      «      ƒ d{  –—† }|j                  D �ci c]  }|j                  |“Œ }}|j                  D �ci c]  }|j                  |“Œ }}t        j                  j                  | |j                  d   ||«      ƒ d{  –—† S 7 Œ•7 Œ…c c}w c c}w 7 Œ­w)aC  Get the first discussion message of a channel post or a discussion thread in a group.

        Reply to the returned message to leave a comment on the linked channel post or to continue
        the discussion thread.

        .. include:: /_includes/usable-by/users.rst

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                You can also use chat public link in form of *t.me/<username>* (str).

            message_id (``int``):
                Message id.

        Example:
            .. code-block:: python

                # Get the discussion message
                m = await app.get_discussion_message(channel_id, message_id)

                # Comment to the post by replying
                await m.reply("comment")
        N)ÚpeerÚmsg_idr   )Úinvoker   Ú	functionsÚmessagesr   Úresolve_peerÚusersÚidÚchatsr   ÚMessageÚ_parse)r   r	   r
   ÚrÚur   Úcr   s           úg/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/messages/get_discussion_message.pyÚget_discussion_messagez+GetDiscussionMessage.get_discussion_message   sÈ   è ø€ ð: —+‘+Ü�M‰M×"Ñ"×7Ñ7Ø×,Ñ,¨WÓ5×5Ø!ð 8ó ó
÷ 
ˆð #$§'¡'Ö*˜Q�—‘�q‘Ð*ˆÐ*Ø"#§'¡'Ö*˜Q�—‘�q‘Ð*ˆÐ*ä—]‘]×)Ñ)¨$°·
±
¸1±¸uÀeÓL×LÐLð 6øð
úò +ùÚ*àLúsN   ‚AC+ÁCÁC+ÁCÁC+Á*CÁ>C+ÂC$Â"4C+ÃC)ÃC+ÃC+ÃC+N)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   © ó    r   r   r      s8   „ ð'MØð'Mà�s˜C�x‘ð'Mð ð'Mð 
ô	'Mr#   r   )Útypingr   Úpyrogramr   r   r   r"   r#   r   ú<module>r&      s   ðõ( ã Ý Ý ÷(Mò (Mr#   