U
    ;g                     @   s>   d dl mZmZmZ d dlZd dlmZmZ G dd dZdS )    )UnionListOptionalN)typesenumsc                
   @   s:   e Zd Zd
deeef eeed ed ddddd	ZdS )EditMessageCaptionNzpyrogram.Clientzenums.ParseModeztypes.MessageEntityztypes.InlineKeyboardMarkupztypes.Message)selfchat_id
message_idcaption
parse_modecaption_entitiesreply_markupreturnc                    s   | j ||||||dI dH S )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)Zedit_message_text)r   r	   r
   r   r   r   r    r   n/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/messages/edit_message_caption.pyedit_message_caption   s    +z'EditMessageCaption.edit_message_caption)NNN)	__name__
__module____qualname__r   intstrr   r   r   r   r   r   r   r      s      
r   )typingr   r   r   Zpyrogramr   r   r   r   r   r   r   <module>   s   