Telegram Integration

Hello everybody

I’m having a weird issue with my Telegram bot. I’ve got two scenarios set up:

Scenario 1 (ID [Scenario 1 ID]): This one’s supposed to handle the “/start” command and just send a greeting.
Scenario 2 (ID [Scenario 2 ID]): This one should be triggered when someone sends an audio message.
The problem is, only Scenario 1 is working. When I send “/start”, the bot replies with the greeting, which is correct. But when I send an audio message, nothing happens. It seems like Scenario 2 isn’t being triggered at all.

I’ve double-checked the filters, and they look right:

Scenario 1 filter: startsWith($1.data.update.message.text;“/start”)
Scenario 2 filter: $1.data.update.message.audio != null
I’ve also tried restarting the scenarios and clearing my browser cache, but no luck.

Could you guys help me figure out why Scenario 2 isn’t working? I need to get this bot working ASAP.

Thanks!

Hi, due to the specifics of the Telegram API, only one trigger will work correctly at a time. Therefore, there is no need to separate the scenarios, everything should exist within a single scenario, as I mentioned to you in the example earlier.

Just send a few test data points to your scenario, the start command, and a voice message, and restart them using this button. This will allow you to test your scenarios indefinitely without having to send the data manually.

If you look at it, when the message is a voice message, it goes through the thread with transcription.


If it’s just text, it remains unchanged.

And if the command is “start,” it follows the thread that sends a greeting for the command /start.