
    N[i                     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)a  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.

            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           c/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/messages/get_discussion_message.pyget_discussion_messagez+GetDiscussionMessage.get_discussion_message   s     8 ++MM""77,,W55! 8 
 
 #$''*Qq**"#''*Qq**]]))$

1ueLLL 6
 +*LsN   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sCx&M &M 
	&Mr#   r   )typingr   pyrogramr   r   r   r"   r#   r   <module>r&      s   &    'M 'Mr#   