How do I map a field that doesn’t show up in the list?
I read in another thread to add it like this: {{1.email}}, so in my case I expected it to be like {{1.media_group_id}}. But it’s not recognised.
What’s the correct way of mapping to it?
How do I map a field that doesn’t show up in the list?
I read in another thread to add it like this: {{1.email}}, so in my case I expected it to be like {{1.media_group_id}}. But it’s not recognised.
What’s the correct way of mapping to it?
Hey there,
that is the correct way of mapping something. You just need its exact name.
I copied it from the trigger of the scenario. If this name is not correct, how do I know the exact name?
Read the api documentation, there you will have all the posible properties
I’ve read the Telegram Bot api documentation multiple times, it’s just not there.
When I evaluate a run with multiple images it shows me the media_group_id number, but the field isn’t there when updating the scenario. So if media_group_id is not the correct name, how / where to find it?
I’m getting closer. It turns out to be {{1.message.media_group_id}}.
How I found out? I copied the Caption field to Notepad and it showed {{1.message.caption}}.
So the router-condition if {{1.message.media_group_id}} exists is found to be true, but in the next call to sub-scenario it says the field is empty
. That’s not what the History tells me.
So I’m one step closer, but still puzzled. Anybody a suggestion?
Hi @humilis
media_group_id is an attribute of the Message Collection, thus the need to reference it with a nested syntax: {{1.message.media_group_id}}
This part is not clear to me. What is “the next call to sub-scenario”?
Maybe you can share screenshots of your scenario to help us understand better.
What I’m doing is that if someone sends multiple images in a Telegram message, I will deliver all these images in one message to a wordpress page. Telegram passes them on as individual posts with a media group id.
For this purpose I’m checking if the {{1.message.media_group_id}} exists, then I call a scenario where I add/update a record in a data store (key = {{1.message.media_group_id}} ) to store each image id and after some seconds I send a message with the array of message id’s to Wordpress.
So {{1.message.media_group_id}} is a mandatory input field to pass on, but I get the message that it is empty. That I don’t understand, as in the Telegram post it’s clearly filled.
So help is very welcome. Thanks!
It turned out to be a format-issue. As {{1.message.media_group_id}} consists of numbers only I defined it as Number, but it should have been Text.