o
    -˜Žj  ã                   @   s6   d dl mZ d dlZd dlmZmZ G dd„ dƒZdS )é    )ÚUnionN)ÚrawÚtypesc                   @   s.   e Zd Zdddeeef deddfdd„Zd	S )
ÚTranscribeAudioÚselfzpyrogram.ClientÚchat_idÚ
message_idÚreturnztypes.TranscribedAudioc                 Ã   s<   �|   |¡I dH }|  tjjj||d�¡I dH }tj |¡S )a{  Transcribes the audio of a voice message.

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.

            message_id (``int``):
                Identifier of the message containing the voice message.

        Returns:
            :obj:`~pyrogram.types.TranscribeAudio`: On success.
        N)ÚpeerÚmsg_id)	Úresolve_peerÚinvoker   Ú	functionsÚmessagesr   r   ÚTranscribedAudioÚ_parse)r   r   r   ÚchatÚr© r   úg/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/messages/transcribe_audio.pyÚtranscribe_audio   s   €þ
ÿz TranscribeAudio.transcribe_audioN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r   r   r   r   r      s    ÿ
þýür   )Útypingr   Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   