Skip to content
Telegram Node: Usin...
 
Notifications
Clear all

Telegram Node: Using previous data with callback info

3 Posts
2 Users
0 Reactions
6 Views
MaaPer
(@maaper)
Posts: 19
Eminent Member
Topic starter
 

Describe the question

  1. I have a flow with information originating from a web form. (ok)

  2. That information is appended to an Airtable dataset. (ok)

  3. Once the information is written to Airtable, I want to send relevant details via Telegram and prompt the receiver to respond using inline buttons. (ok)

  4. Subsequently, the reply must be captured by a Telegram Trigger (callback_query) to initiate the next stage of the flow.

The challenge is that I need to receive, along with the callback_query in step 3 (the trigger), the Airtable information that was utilized in the Telegram origin node.

Is this feasible?

Please share the workflow

 
Posted : 15/09/2022 4:43 pm
MutedJam
(@mutedjam)
Posts: 21
Eminent Member
 

Hi, I'm afraid this isn't possible out of the box. The reason for this is that each execution would be independent of the previous one.

So, when your trigger node receives the request from Telegram, this would start a new execution with no data from previous executions being present. You would therefore need to persist the relevant data from previous executions in a database (like Airtable) and then look it up again when the trigger node runs.

 
Posted : 16/09/2022 10:43 am
MaaPer
(@maaper)
Posts: 19
Eminent Member
Topic starter
 

Thanks for your time in replying.
So, every time I have an end node of Telegram, I need to write the information to be transferred to a database.
After the trigger starts, one node must go to the database and retrieve the information. The field to use for searching the database could be the chatid that is present in both the reply node and the trigger node.
Do you think this approach is okay?
Instead of using Airtable, would it be possible to generate a JSON, save it to Drive, and then have the trigger node retrieve the information from that JSON?

 
Posted : 16/09/2022 11:40 am
Share: