Telegram Callback Trigger
The Telegram Callback Trigger triggers a flow when a button on a keyboard is pressed in a Telegram chat. A keyboard is sent along with a message; each button contains a callback value in addition to its text. The trigger compares the incoming callback value with its command and starts the flow if they match.
note
The trigger is only displayed in the “Expert mode”.”
After double-clicking on the trigger, set the following properties:
| Property | Description |
|---|---|
| connection | All Telegram connections created in the Plug-ins section are available for selection here. If the desired connection is not yet available, you can make it available in the Plug-ins section as a "" Telegram connection at. |
| Command | Callback value to which this trigger responds. The drop-down list contains the callback values of all keyboard buttons configured for the same connection; you can also enter a value that is not yet listed there. A "@" is not permitted. |
| Authentication required | Check the box if only authorized users are allowed to trigger the flow. The checkbox can only be selected if authentication is set up for the selected connection; otherwise, it remains unchecked and the two following fields are disabled. |
| Authorized Users | Select authorized users from the drop-down menu. |
| User Filter | Here, you also have the option to enter a filter to specifically select authorized users. |
| Clear Keyboard | Check the box if you want the keyboard to be removed from the message after a successful transfer. |
Trigger Values
The trigger provides the data from the button press as input values for the flow:
| Value | Content |
|---|---|
| Callback | The callback value of the pressed button. |
| Username | Telegram username of the sender. |
| First Name | First name of the sender. |
| Last Name | Last name of the sender. |
| Chat ID | The chat from which the keystroke originated. |
| Message ID | The message associated with the keyboard. |
| Text Message | The text of this message. |
| Keyboard | The keyboard for the message as a JSON array containing text and callback functions for each button. |
| Date | The time the message was sent. |
If the transfer is aborted, the bot responds in the chat with an abort message.
To receive commands typed in the chat, use the Telegram trigger “” ().