# Client. Send Voice Message (TelegramClientSendVoice)

Sends a voice message to a chat.

<table data-header-hidden><thead><tr><th width="249" valign="top"></th><th width="285" valign="top"></th></tr></thead><tbody><tr><td valign="top">Connection</td><td valign="top">[Link] Client connection object. The variable name in this property must match the variable name in the "Connection" property of the "Client. Create Connection" block from the Telegram group that was previously used to connect the Telegram client.</td></tr><tr><td valign="top">Destination</td><td valign="top"><p>[Text] Destination object. This string can contain the following values:</p><ul><li>Chat Id,</li><li>Chat name,</li><li>User Id,</li><li>User's "FirstName LastName" combination,</li><li>User's Username value,</li><li>User's phone number.</li></ul></td></tr><tr><td valign="top">Reply to Message</td><td valign="top">[Number] Specify the ID of the message to reply to.</td></tr><tr><td valign="top">Message Thread</td><td valign="top">[Number/Text] Specify the thread ID to which the message should be sent. This allows sending a message to a specific group within a supergroup, as well as to the comment chat for a specific channel message. If you are sending a message to a supergroup, then message_thread_id refers to a specific group within the supergroup. If you are writing a comment for a message in a channel, then message_thread_id refers to the comment thread for a specific channel message. This identifier can be obtained using the "Client. Get Message Thread ID" block.</td></tr><tr><td valign="top">File Name</td><td valign="top">[Text] The name and path of the file to be sent to the chat. For example: "audio.ogg". You can enter the full file name including the path.</td></tr><tr><td valign="top">Title</td><td valign="top">[Text] Optionally, you can specify a title for the file.</td></tr><tr><td valign="top">Disable Notification</td><td valign="top">When enabled, the delivery notification will not be sent.</td></tr><tr><td valign="top">Disable Preview</td><td valign="top">When enabled, link previews are disabled.</td></tr><tr><td valign="top">HTML Formatting</td><td valign="top">When enabled, the text can use formatting with HTML tags. For example: &#x3C;b>Bold text&#x3C;/b>.</td></tr><tr><td valign="top">Number of Attempts</td><td valign="top">[Number] The number of attempts in case of a connection error with the server.</td></tr><tr><td valign="top">Message</td><td valign="top"><p>[Link] Returns the object of the sent message. Available properties:</p><ul><li>Id - message id;</li><li>ChatId - chat id;</li><li>From - name of the User from whom the message was sent;</li><li>Text - message text;</li><li>Type - textual designation of the message type;</li><li>IsFile - indicates whether there is a file in the message (the type can be more precisely determined using the properties IsDocument, IsPhoto). For example: $TMessage.IsPhoto - if equal to $true, then there is a photo in the message.</li></ul></td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Message</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/telegram/klient.-otpravit-golosovoe-soobshenie-telegramclientsendvoice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
