a
    y{Jh  ã                   @  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< er„dddddœdddd
ddddœ‡ fdd„Z‡  ZS )ÚEditMessageMediaaf  
    Use this method to edit animation, audio, document, photo, or video 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.

    Source: https://core.telegram.org/bots/api#editmessagemedia
    ZeditMessageMediazaUnion[InputMediaAnimation, InputMediaDocument, InputMediaAudio, InputMediaPhoto, InputMediaVideo]ÚmediaNzOptional[Union[int, str]]Úchat_idzOptional[int]Ú
message_idzOptional[str]Úinline_message_idzOptional[InlineKeyboardMarkup]Úreply_markup)r   r   r   r   r   ÚNone)r   r   r   r   r   Ú"_EditMessageMedia__pydantic_kwargsÚreturnc                  s"   t ƒ jf |||||dœ|¤Ž d S )N)r   r   r   r   r   )ÚsuperÚ__init__)Z__pydantic__self__r   r   r   r   r   r   ©Ú	__class__© úT/var/www/shaz/venv/lib/python3.9/site-packages/aiogram/methods/edit_message_media.pyr   ,   s    ûúzEditMessageMedia.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚboolZ__returning__Z__api_method__Ú__annotations__r   r   r   r   r   r   Ú__classcell__r   r   r   r   r      s   
ór   N)Ú
__future__r   Útypingr   r   r   r   Útypesr   r	   r
   r   r   r   r   Úbaser   r$   r   r   r   r   r   Ú<module>   s   $	