Im am using node-red-contrib-telegrambot.
I am trying to create a custom keyboard but was not able to setup the payload properly.
This is how I tried it:
[
{
"id": "2cebda8cf198719a",
"type": "change",
"z": "33667947.7eff86",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "payload.type",
"pt": "msg",
"to": "message",
"tot": "str"
},
{
"t": "set",
"p": "payload.chatId",
"pt": "msg",
"to": "xxx",
"tot": "str"
},
{
"t": "set",
"p": "payload.content",
"pt": "msg",
"to": "Selections?",
"tot": "str"
},
{
"t": "set",
"p": "payload.options.reply_markup.resize_keyboard",
"pt": "msg",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "payload.options.reply_markup.one_time_keyboard",
"pt": "msg",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "payload.options.reply_markup.keyboard",
"pt": "msg",
"to": "[['A1'],['A2']]",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 310,
"y": 2340,
"wires": [
[
"60218a44b83f18ac",
"6714a738e84a504d"
]
]
}
]
Reply is:
Caught exception in sender node:
Error: ETELEGRAM: 400 Bad Request: inline keyboard expected
when processing message:
I would apreciate some help how to setup it correctly!