Forum Documentation Showcase Pricing Learn more

How to allow Api Workflow Detect Data for multiple arrays


#1

Hey Bubblers,
we are building a telegram bot and try to set an endpoint which would receive webhooks from Telegram.
Now the problem is that for different events Telegram sends different type of objects. and it allows only one endpoint to be used for webhooks.
So when we use detect request data on one object then we can’t use the other object.
is there a way to manually set up all the fields if they are coming in an array instead of using automatic request data?
@NigelG @AliFarahat any idea?

Thanks!

Levon Terteryan
Founder @ Zeroqode & Bubblewits

let’s stay in touch on twitter!

zeroqode-for-web-160x120

Bubble Templates
Bubble Plugins
Bubble Courses
Convert Web to iOS & Android
No-code Development Services


#2

Off the top of my head, you can use zapier. Zapier will allow you to send to multiple zaps using a single URL. Ids of the zaps separated by commas.

so for example

https://zapurl/45478,54878,6565


#3

thanks Ali, will take a look, but i’d prefer a direct solution, to avoid delays and to minimize the chances of loosing the webhooks, reached out to Bubble support to see if they might make some improvements to the endpoints


#4

So, we found a workaround
first we detect request data for first object, then copy the array that Bubble detects. Then we trigger the second object from telegram and detect request data for that second object and again copy the array that Bubble detects. Then we combine the arrays in a text editor and paste the request in Postman and run detect request data again this time listening for the combined object. And then whatever object telegram sends to that endpoint we detect it smoothly.

Levon Terteryan
Founder @ Zeroqode & Bubblewits

let’s stay in touch on twitter!

zeroqode-for-web-160x120

Bubble Templates
Bubble Plugins
Bubble Courses
Convert Web to iOS & Android
No-code Development Services