
     j                     H    d dl mZmZ ddlmZ ddlmZ  G d dee         Zy)	    )TYPE_CHECKINGAny   )InputRichMessage   )TelegramMethodc                        e Zd ZU dZeZdZeed<   	 eed<   	 e	ed<   	 dZ
edz  ed<   	 erdddedede	dedz  d	ed
df fdZ xZS  xZS )SendRichMessageDrafta  
    Use this method to stream a partial rich message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call :class:`aiogram.methods.send_rich_message.SendRichMessage` with the complete message to persist it in the user's chat. Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#sendrichmessagedraft
    sendRichMessageDraftchat_iddraft_idrich_messageNmessage_thread_id)r   &_SendRichMessageDraft__pydantic_kwargsreturnc                .    t        |   d||||d| y )N)r   r   r   r    )super__init__)__pydantic__self__r   r   r   r   r   	__class__s         Z/var/www/html/venv/lib/python3.12/site-packages/aiogram/methods/send_rich_message_draft.pyr   zSendRichMessageDraft.__init__   s-     G !)"3	
 $    )__name__
__module____qualname____doc__bool__returning____api_method__int__annotations__r   r   r   r   r   __classcell__)r   s   @r   r
   r
      s     M+NL7M{""X$(sTz(9 -1	 	 		
 +	  #Tz	 "%	 	 		 r   r
   N)	typingr   r   typesr   baser   r   r
   r   r   r   <module>r'      s    % $  *>$/ *r   