o
    @jë  ã                   @  st   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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é   )ÚInlineKeyboardMarkupÚInputMediaAnimationÚInputMediaAudioÚInputMediaDocumentÚInputMediaPhotoÚInputMediaVideoÚMessageé   )ÚTelegramMethodc                      sž   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rKddddddœd‡ fdd„Z‡  ZS ‡  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
    ÚeditMessageMediaúaUnion[InputMediaAnimation, InputMediaDocument, InputMediaAudio, InputMediaPhoto, InputMediaVideo]ÚmediaNúOptional[str]Úbusiness_connection_idúOptional[Union[int, str]]Úchat_idúOptional[int]Ú
message_idÚinline_message_idúOptional[InlineKeyboardMarkup]Úreply_markup)r   r   r   r   r   Ú"_EditMessageMedia__pydantic_kwargsr   ÚreturnÚNonec             	     s$   t ƒ jd||||||dœ|¤Ž d S )N)r   r   r   r   r   r   © )ÚsuperÚ__init__)Ú__pydantic__self__r   r   r   r   r   r   r   ©Ú	__class__r!   úq/var/www/www-root/data/www/ai-bot.pdev.uz/venv/lib/python3.10/site-packages/aiogram/methods/edit_message_media.pyr#   .   s   ú
ùzEditMessageMedia.__init__)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__Ú__annotations__r   r   r   r   r   r   r#   Ú__classcell__r!   r!   r%   r'   r      s0   
 òür   N)Ú
__future__r   Útypingr   r   r   r   Útypesr   r	   r
   r   r   r   r   Úbaser   r,   r   r!   r!   r!   r'   Ú<module>   s
    $	 