o
    -˜Žj  ã                   @   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                   @   sZ   e Zd Z					ddddeeef dededed	 d
ed dedddeddfdd„Z	dS )ÚEditMessageCaptionNFÚselfzpyrogram.ClientÚchat_idÚ
message_idÚcaptionÚ
parse_modezenums.ParseModeÚcaption_entitiesztypes.MessageEntityÚinvert_mediaÚreply_markupztypes.InlineKeyboardMarkupÚbusiness_connection_idÚreturnztypes.Messagec	           	   
   Ã   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).
                You can also use chat public link in form of *t.me/<username>* (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*.

            invert_media (``bool``, *optional*):
                Inverts the position of the media and caption.

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

            business_connection_id (``str``, *optional*):
                Unique identifier of the business connection.
                for business bots only.

        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   r   r   N)Úedit_message_text)	r   r	   r
   r   r   r   r   r   r   © r   úk/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/messages/edit_message_caption.pyÚedit_message_caption   s   €5øz'EditMessageCaption.edit_message_caption)NNFNN)
Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r   Úboolr   r   r   r   r   r      s6    ÷ÿ
þýüûúùø	÷
ör   )Útypingr   r   r   Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   