fix(telegram): use inline_keyboard array for Telegram node
The n8n Telegram node's inlineKeyboard parameter expects the keyboard
rows array directly, not the full {inline_keyboard: [...]} object.
Fixed nodes:
- Send Confirmation Dialog
- Send Stop Result
- Send Expired Message
Changed from: JSON.stringify($json.reply_markup)
Changed to: JSON.stringify($json.reply_markup.inline_keyboard)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -4617,7 +4617,7 @@
|
||||
"chatId": "={{ $json.chatId }}",
|
||||
"text": "={{ $json.text }}",
|
||||
"replyMarkup": "inlineKeyboard",
|
||||
"inlineKeyboard": "={{ JSON.stringify($json.reply_markup) }}",
|
||||
"inlineKeyboard": "={{ JSON.stringify($json.reply_markup.inline_keyboard) }}",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
@@ -4644,7 +4644,7 @@
|
||||
"chatId": "={{ $json.chatId }}",
|
||||
"text": "={{ $json.text }}",
|
||||
"replyMarkup": "inlineKeyboard",
|
||||
"inlineKeyboard": "={{ JSON.stringify($json.reply_markup) }}",
|
||||
"inlineKeyboard": "={{ JSON.stringify($json.reply_markup.inline_keyboard) }}",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
@@ -4671,7 +4671,7 @@
|
||||
"chatId": "={{ $json.chatId }}",
|
||||
"text": "={{ $json.text }}",
|
||||
"replyMarkup": "inlineKeyboard",
|
||||
"inlineKeyboard": "={{ JSON.stringify($json.reply_markup) }}",
|
||||
"inlineKeyboard": "={{ JSON.stringify($json.reply_markup.inline_keyboard) }}",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user