
    N[i                     D    d dl mZmZmZ d dlZd dlmZmZ  G d d      Zy)    )UnionListOptionalN)typesenumsc                   R    e Zd Z	 	 	 ddddeeef   dededed   d	ed
   ddddfdZy)EditMessageCaptionNselfzpyrogram.Clientchat_id
message_idcaption
parse_modezenums.ParseModecaption_entitiesztypes.MessageEntityreply_markupztypes.InlineKeyboardMarkupreturnztypes.Messagec                 L   K   | j                  ||||||       d{   S 7 w)a  Edit the caption of media messages.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                For your personal cloud (Saved Messages) you can simply use "me" or "self".
                For a contact that exists in your Telegram address book you can use his phone number (str).

            message_id (``int``):
                Message identifier in the chat specified in chat_id.

            caption (``str``):
                New caption of the media message.

            parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
                By default, texts are parsed using both Markdown and HTML styles.
                You can combine both syntaxes together.

            caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
                List of special entities that appear in the caption, which can be specified instead of *parse_mode*.

            reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
                An InlineKeyboardMarkup object.

        Returns:
            :obj:`~pyrogram.types.Message`: On success, the edited message is returned.

        Example:
            .. code-block:: python

                await app.edit_message_caption(chat_id, message_id, "new media caption")
        )r   r   textr   entitiesr   N)edit_message_text)r
   r   r   r   r   r   r   s          a/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/messages/edit_message_caption.pyedit_message_captionz'EditMessageCaption.edit_message_caption   s=     V ++!!%% , 
 
 	
 
s   $"$)NNN)	__name__
__module____qualname__r   intstrr   r   r        r   r	   r	      sr     378<592
2
sCx2
 2
 	2

 ./2
 452
 32
 
2
r   r	   )typingr   r   r   pyrogramr   r   r	   r   r   r   <module>r!      s   & ) (  !3
 3
r   