Hi.
I would like to know if it’s possible to send custom data for ‘Inline Keyboard’?
Currently, to send data for Inline Keyboard, one has to fix the rows & buttons using the ‘Add Keyboard Row’ and ‘Add Button’ options.
What i would like to achieve is to send a varying set of rows and buttons everytime. This can currently be done via HTTP node by creating the Inline Keyboard payload programatically.
But, is this option also available in the current Telegram node and i’m not able to figure it out?
Or, if it isn’t, could this feature be added to the node?
This is how i’m doing it currently:
{
"nodes": [
{
"parameters": {
"requestMethod": "POST",
"url": "https://api.telegram.org/bot<BOT_TOKEN>/sendMessage",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "chat_id",
"value": <CHAT_ID>
},
{
"name": "text",
"value": "Test message"
},
{
"name": "reply_markup",
"value": "={{ JSON.stringify({inline_keyboard:[[{text:\"a\",callback_data:\"a\"}]] }) }}"
}
]
}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
650,
600
]
}
],
"connections": {}
}
Thanks.