Button callback_query Data Not Passing from Telegram Watch Updates Module

I’m using Watch Updates in Make to receive updates from a Telegram bot. The data is routed through a Router, and Module 17 (Telegram Bot - Send a Text Message or a Reply) should process the callbackQuery data, but it’s not passing through correctly.

Setup:

  • Telegram Bot - Watch Updates (receives updates)
  • Router with filters (to direct the flow)
  • Telegram Bot - Send a Text Message or a Reply (Module 17)

Issue:

  • The callbackQuery data does not seem to pass from Watch Updates to the next module.
  • Could I be using the wrong modules, or do I need an intermediate processing module to extract callbackQuery data?
  • Do I need to modify filters or use a different approach to handle callback queries?

Has anyone faced this issue? What would be the best way to correctly process callbackQuery data in this setup?

Any advice is appreciated! Thanks.

Welcome to the Make community!

What is “callbackQuery data”? Could you provide examples or screenshots of it, and what are you sending and expecting?

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

Sharing these details will make it easier for others to assist you.

1 Like

thank you for sharing and explaining how to explain the problem more effectively
blueprint_tg_callback.json (59.2 KB)
output_bundles.txt (688 Bytes)
input_bundles.txt (794 Bytes)


I think you’ll need more than one button.

To do this, you can use the built-in functions map and get

{{ get(object or array; path) }}

e.g.: (paste this into the field)

You selected: "{{first(map(get(22.callback_query.message.reply_markup; "inline_keyboard.1"); "text"; "callback_data"; 22.callback_query.data))}}".
Button data: "{{22.callback_query.data}}"

Example

Here is an example of how your scenario could look:
Screenshot_2025-03-18_090359

This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.

Input
Screenshot_2025-03-18_090351

Output
Screenshot_2025-03-18_090309

For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.