
    F˝i8                    f    d dl mZ d dl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z           Zy	)
    )annotations)TYPE_CHECKINGAny   )ChatIdUnionInlineKeyboardMarkupInputMediaUnionMessage   )TelegramMethodc                       e Zd ZU dZeez  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
str | Nonebusiness_connection_idChatIdUnion | Nonechat_id
int | None
message_idinline_message_idInlineKeyboardMarkup | None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	           [/home/leshdev/mybot/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
   bool__returning____api_method____annotations__r   r   r   r   r   r   r   __classcell__)r    s   @r!   r   r   	   s     dNM'NI)-J-k"&G& m!J
!]$(z(d04L-4{ 26*.%),08<	 #	 %/		
 (	 #	  *	 6	 "%	 	 		 r"   r   N)
__future__r   typingr   r   typesr   r   r	   r
   baser   r)   r   r   r"   r!   <module>r2      s)    " % O O  2~gn5 2r"   