Hi,
I am making a bot where I will need to make a custom request to Telegram for inline keyboard. I want to read data from Goggle Sheets, and send each item from Google Sheets as a button.
The problem is that the data in Google Sheets may vary. For example sometimes there may be just three items in the Sheets, so the Telegram inline keyboard will have three buttons. Sometimes it may be five or even ten.
So of course I can not hard code the custom request. Is there a way where I can use something like a for loop to create the JSON for the inline keyboard dynamically?
I thought about using the custom code block in Flowxo, but since I do not know the number of items coming back from Google Sheets in advance, I can not set up the inputs for the code block in advance.
Does anyone have a solution to this?
Thanks in advance