Ë
    :É„j  ã                   ó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                   ó^   — 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„Z	y)ÚEditMessageCaptionNÚ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	           
   ƒ   óP   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).
                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   s	            úe/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/messages/edit_message_caption.pyÚedit_message_captionz'EditMessageCaption.edit_message_caption   sC   è ø€ ðj ×+Ñ+ØØ!ØØ!Ø%Ø%Ø%Ø#9ð ,ó 	
÷ 	
ð 		
ð 	
ús   ‚&Ÿ$ &)NNFNN)
Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r   Úboolr   © ó    r   r	   r	      sŒ   „ ð 37Ø8<Ø"Ø59Ø&*ñ>
Øð>
à�s˜C�x‘ð>
ð ð>
ð ð	>
ð
 Ð.Ñ/ð>
ð Ð4Ñ5ð>
ð ð>
ð 3ð>
ð !$ð>
ð 
ô>
r!   r	   )Útypingr   r   r   Úpyrogramr   r   r	   r    r!   r   ú<module>r$      s   ð÷( )Ñ (ã ß !÷?
ò ?
r!   