o
    @jƒ  ã                   @  sp   d dl mZ d dlmZmZmZmZ ddlmZ ddl	m
Z
mZmZ ddlmZ G dd	„ d	eeeef  ƒZd
S )é    )Úannotations)ÚTYPE_CHECKINGÚAnyÚOptionalÚUnioné   )ÚDefault)ÚInlineKeyboardMarkupÚMessageÚMessageEntityé   )ÚTelegramMethodc                
      sä   e Zd ZU dZeeef ZdZdZ	de
d< 	 dZde
d< 	 dZde
d	< 	 dZde
d
< 	 dZde
d< 	 edƒZde
d< 	 dZde
d< 	 edƒZde
d< 	 dZde
d< 	 erndddddedƒdedƒddœ	d‡ fdd„Z‡  ZS ‡  ZS )ÚEditMessageCaptiona¾  
    Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited :class:`aiogram.types.message.Message` is returned, otherwise :code:`True` is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent.

    Source: https://core.telegram.org/bots/api#editmessagecaption
    ÚeditMessageCaptionNúOptional[str]Úbusiness_connection_idúOptional[Union[int, str]]Úchat_idúOptional[int]Ú
message_idÚinline_message_idÚcaptionÚ
parse_modeúOptional[Union[str, Default]]úOptional[list[MessageEntity]]Úcaption_entitiesÚshow_caption_above_mediaúOptional[Union[bool, Default]]úOptional[InlineKeyboardMarkup]Úreply_markup©	r   r   r   r   r   r   r   r   r   Ú$_EditMessageCaption__pydantic_kwargsr   ÚreturnÚNonec       	           s*   t ƒ jd|||||||||	dœ	|
¤Ž d S )Nr    © )ÚsuperÚ__init__)Ú__pydantic__self__r   r   r   r   r   r   r   r   r   r!   ©Ú	__class__r$   ús/var/www/www-root/data/www/ai-bot.pdev.uz/venv/lib/python3.10/site-packages/aiogram/methods/edit_message_caption.pyr&   +   s   ÷

özEditMessageCaption.__init__)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r   r"   r#   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r
   ÚboolÚ__returning__Ú__api_method__r   Ú__annotations__r   r   r   r   r   r   r   r   r   r   r&   Ú__classcell__r$   r$   r(   r*   r   
   sH   
 ÿóür   N)Ú
__future__r   Útypingr   r   r   r   Úclient.defaultr   Útypesr	   r
   r   Úbaser   r/   r   r$   r$   r$   r*   Ú<module>   s     