a
    :gS                     @  s   d dl mZ d dlmZmZmZmZ d dlmZ ddl	m
Z
 ddlmZ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 ZdS )    )annotations)TYPE_CHECKINGAnyOptionalUnion)Field   )Default)
ForceReplyInlineKeyboardMarkup	InputFileMessageMessageEntityReplyKeyboardMarkupReplyKeyboardRemoveReplyParameters   )TelegramMethodc                      sX  e Zd ZU dZeZdZded< ded< dZded	< dZ	d
ed< dZ
ded< edZded< dZded< dZd
ed< dZded< e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dddidZded< edddidZd
ed < erPdddeddddedddddddd!dddd
dddd
dddddddd
d"d#d$ fd%d&Z  ZS )'	SendVoiceaC  
    Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as :class:`aiogram.types.audio.Audio` or :class:`aiogram.types.document.Document`). On success, the sent :class:`aiogram.types.message.Message` is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.

    Source: https://core.telegram.org/bots/api#sendvoice
    Z	sendVoicezUnion[int, str]chat_idzUnion[InputFile, str]voiceNzOptional[str]business_connection_idzOptional[int]message_thread_idcaption
parse_modezOptional[Union[str, Default]]zOptional[list[MessageEntity]]caption_entitiesdurationzOptional[bool]disable_notificationprotect_contentzOptional[Union[bool, Default]]allow_paid_broadcastmessage_effect_idzOptional[ReplyParameters]reply_parametersz[Optional[Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply]]reply_markup
deprecatedT)Zjson_schema_extraallow_sending_without_replyreply_to_message_id)r   r   r   r   r   r   r   r   r   r    r!   r"   r$   r%   r   None)r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r$   r%   _SendVoice__pydantic_kwargsreturnc                  s8   t  jf |||||||||	|
||||||d| d S )N)r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r$   r%   )super__init__)Z__pydantic__self__r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r$   r%   r'   	__class__ w/var/www/vosh/data/www/fastworkle.ru/webshop-tgbot-v.1.0/venv/lib/python3.9/site-packages/aiogram/methods/send_voice.pyr*   N   s(    zSendVoice.__init__)__name__
__module____qualname____doc__r   Z__returning__Z__api_method____annotations__r   r   r   r	   r   r   r   r   r   r   r    r!   r"   r   r$   r%   r   r*   __classcell__r-   r-   r+   r.   r      sL   

	r   N)
__future__r   typingr   r   r   r   Zpydanticr   Zclient.defaultr	   typesr
   r   r   r   r   r   r   r   baser   r   r-   r-   r-   r.   <module>   s   (
