windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
264 stars 117 forks source link

inline_keyboard dynamic #350

Closed kuradi closed 8 months ago

kuradi commented 8 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 8 months ago

I would put that code in a function node

kuradi commented 8 months ago

I would put that code in a function node

do you have any working example?

windkh commented 8 months ago

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