Dynamic reply markup in telegram node

Describe the problem/error/question

I’m trying to make a dynamic reply markup in telegram node, it works if i make it as an HTTP node (using POST) but its slower than the built-in telegram node, and in the telegram node it just doesn’t work and give error as “is not supported”

rich text editor image

So, what exactly is the “expression” in the reply markup for? or am i using it wrong?

What is the error message (if any)?

“is not supported”

Please share your workflow


## Share the output returned by the last node
[
  {
    "chat_id": ,
    "text": "Which Course do you want to talk about?",
    "reply_markup": "{\"inline_keyboard\":[[{\"text\":\"P.Technology II\",\"callback_data\":\"Course:technoII\"},{\"text\":\"P.Legislations & Regulatory Affairs\",\"callback_data\":\"Course:affairs\"},{\"text\":\"Hospital Pharmacy\",\"callback_data\":\"Course:hospital\"}],[{\"text\":\"Drug Information\",\"callback_data\":\"Course:info\"},{\"text\":\"C.Pharmacokinetics\",\"callback_data\":\"Course:kinetics\"},{\"text\":\"C.Biochemistry\",\"callback_data\":\"Course:bio\"}],[{\"text\":\"Community Pharmacy\",\"callback_data\":\"Course:community\"},{\"text\":\"Green Synthesis\",\"callback_data\":\"Course:green\"},{\"text\":\"Metabolism in drug discovery\",\"callback_data\":\"Course:metabolism\"}]]}"
  }
]

## Information on your n8n setup
- **n8n version:** 1.81.4
- **Database (default: SQLite):**
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** doccker
- **Operating system:** win 11
1 Like

The documentation is pretty detailed about the predefined options but doesn’t say anything about it so I guess the expression is there so you can pass one of these options dynamically.

If you are trying to build a custom response form for Telegram the Send and Wait for Response Operations seems better suited for that because it has a Response type: Custom form. You can use dropdown fields, emails, files, dates etc.

Unfortunately this is not a solution as behaviour is different of what send message with e.g. button can do. I’m very much interested in someone having a response to the original question. So - up.

Same issue here :confused: