
    dhs                    r    d dl mZ d dlmZmZmZmZ ddlmZm	Z	m
Z
mZ ddlmZ  G d deeeef            Zy	)
    )annotations)TYPE_CHECKINGAnyOptionalUnion   )ChatIdUnionInlineKeyboardMarkupInputMediaUnionMessage   )TelegramMethodc                       e Zd ZU dZeeef   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<   	 dZde	d<   	 er dddddd	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d fdZ xZS  xZS )EditMessageMediaa-  
    Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. 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#editmessagemedia
    editMessageMediar   mediaNOptional[str]business_connection_idOptional[ChatIdUnion]chat_idOptional[int]
message_idinline_message_idOptional[InlineKeyboardMarkup]reply_markup)r   r   r   r   r   c          
     2    t        |   d||||||d| y )N)r   r   r   r   r   r    )super__init__)	__pydantic__self__r   r   r   r   r   r   "_EditMessageMedia__pydantic_kwargs	__class__s	           \/var/www/netwell/bot/venv/lib/python3.12/site-packages/aiogram/methods/edit_message_media.pyr   zEditMessageMedia.__init__$   s3     G '=%"3) $    )r   r   r   r   r   r   r   r   r   r   r   r   r!   r   returnNone)__name__
__module____qualname____doc__r   r   bool__returning____api_method____annotations__r   r   r   r   r   r   r   __classcell__)r"   s   @r#   r   r   	   s     '4-(M'NI,0M0k%)G") m $J$]'+}+d37L07{ 59-1(,/3;?	 #	 %2		
 +	 &	  -	 9	 "%	 	 		 r$   r   N)
__future__r   typingr   r   r   r   typesr	   r
   r   r   baser   r+   r   r   r$   r#   <module>r4      s1    " 6 6 O O  2~eGTM&:; 2r$   