Bot. Edit Message#
Changing a message in the chat.
| Connection | [Link] The 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 from the "Bot. Send Message" block in the "Message" property - $TMessage.ChatId. |
| Message ID | [Number] Message ID. This value can be obtained from the "Bot. Send Message" block in the "Message" property - $TMessage.Id. |
| Text | [Text] New text for the message or media message title. |
| Buttons | [Dictionary] A dictionary of buttons that will be sent along with the message. The key of the dictionary is the button name, and the value of the dictionary is the callback data. For example: @{ "Back"="butBack"; "Forward"="butForward" }. The values "butBack" and "butForward" will be returned in the $TMessage.CallbackData property. More details are described in the "Callback" property of the "Bot. Get Message" block. |
| Number of Button Columns | [Number] If the value is empty, the buttons will be arranged in a single row. If a value is specified, the buttons will be arranged in the specified number of columns. |
| Media Message Title | If enabled, the title of the media message (file, image) will be changed. In this case, the Chat ID and Message ID must point to such a message in the chat. Otherwise, the text of the message will be changed. |
| Disable Notification | When enabled, the delivery notification will not be sent. |
| Disable Preview | When enabled, link previews are disabled. |
| HTML Formatting | When enabled, formatting using HTML tags can be used in the text. For example: <b>Bold text</b>. |
| Number of Attempts | [Number] The number of attempts when a connection error occurs with the server. |
| Message | [Link] Returns the object of the modified message. Available properties:
|
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value of 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 of 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. |