Bot. Send Photo#
Sending a photo or image in the chat.
| Connection | [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. |
| Chat ID | [Number] Chat ID. This value can be obtained:
|
| Message ID | [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 |
| File Name | [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. |
| Description | [Text] Description for the photo. |
| Disable Notification | When enabled, the delivery notification will not be sent. |
| Disable Preview | When enabled, link previews are disabled. |
| HTML Formatting | When enabled, you can use formatting in the text using HTML tags. For example: <b>Bold text</b>. |
| Message Thread | [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. |
| Number of Attempts | [Number] The number of attempts in case of a server connection error. |
| Message | [Link] Returns the object of the sent message. Available properties:
|
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Message Level | Select the message level that the blocks will output during operation. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block's work. |