windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
269 stars 119 forks source link

inline_keyboard dynamic #350

Closed kuradi closed 10 months ago

kuradi commented 10 months ago

its not an issue, more like a cry for help :)

is there any way to make inline_keyboard dynamic, sort of

if a=b show {"text": "Yes","callback_data": "FOO YES"} if a=c {"text": "No","callback_data": "FOO NO"}]

?

windkh commented 10 months ago

I would put that code in a function node

kuradi commented 10 months ago

I would put that code in a function node

do you have any working example?

windkh commented 10 months ago

No, but you can also use a switch node https://flowfuse.com/node-red/core-nodes/switch/