# Bot. Send Photo

Sending a photo or image in the chat.

<table data-header-hidden><thead><tr><th width="225" valign="top"></th><th width="325" valign="top"></th></tr></thead><tbody><tr><td valign="top">Connection</td><td valign="top">[Link] Connection object to the bot. The variable name in this property must match the variable name in the "Connection" property of the "Bot. Create Connection" block from the Telegram group that was previously used to connect to the Telegram bot.</td></tr><tr><td valign="top">Chat ID</td><td valign="top"><p>[Number] Chat ID. This value can be obtained:</p><ul><li>from the "Bot. Get Message" block in the "Message" property - $TMessage.ChatId;</li><li>from the "Bot. List Chats" block in the "List of Chats" property - $Chats["username"].</li></ul></td></tr><tr><td valign="top">Message ID</td><td valign="top">[Number] You can enter the ID of the message to which you want to reply. This value can be obtained from the "Bot. Get Message" block in the "Message" property - $TMessage.Id</td></tr><tr><td valign="top">File Name</td><td valign="top">[Text] The name and path to the file that will be sent in the chat. The maximum file size is 20 MB. You can enter the full file name including the path.</td></tr><tr><td valign="top">Description</td><td valign="top">[Text] Description for the photo.</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, you can use formatting in the text using HTML tags. For example: &#x3C;b>Bold text&#x3C;/b>.</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 the 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">Number of Attempts</td><td valign="top">[Number] The number of attempts in case of a server connection error.</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 - username from whom the message was sent;</li><li>Text - message text;</li><li>Type - text designation of the message type;</li><li>IsFile - indicates whether there is a file in the message (you can more precisely determine the type 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" - by 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 the blocks will output during operation. Possible values:</p><ul><li>"Default" - by 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 Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</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/bot.-otpravit-foto-telegrambotsendphoto.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.
