fix(10.1-06): strip inline keyboard from text-mode status responses
Text commands like "status book" should show plain text status without inline keyboard buttons. Added "Strip Status Keyboard" Code node that removes reply_markup before sending via Send Container Submenu Direct. Callback-based status (with messageId) still gets the full UI with buttons. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4764,6 +4764,19 @@
|
||||
1890,
|
||||
1000
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "// Strip inline keyboard for text-mode status display\nconst data = $input.item.json;\nreturn {\n json: {\n chatId: data.chatId,\n text: data.text,\n parse_mode: 'HTML'\n }\n};"
|
||||
},
|
||||
"id": "code-strip-status-keyboard",
|
||||
"name": "Strip Status Keyboard",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1945,
|
||||
1100
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@@ -6583,6 +6596,17 @@
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Strip Status Keyboard",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Strip Status Keyboard": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send Container Submenu Direct",
|
||||
|
||||
Reference in New Issue
Block a user