diff --git a/n8n-workflow.json b/n8n-workflow.json index 3cb8fdc..f9bce12 100644 --- a/n8n-workflow.json +++ b/n8n-workflow.json @@ -3376,7 +3376,7 @@ }, { "parameters": { - "jsCode": "// Prepare update action from confirmation - show \"Updating...\" message\nconst data = $('Parse Callback Data').item.json;\nconst containerName = data.containerName;\nconst chatId = data.chatId;\nconst messageId = data.messageId;\n\n// Show progress message\nconst text = `\\u23F3 Updating ${containerName}...\\n\\nPulling latest image and recreating container.`;\n\nreturn {\n json: {\n containerName,\n chatId,\n messageId,\n progressText: text\n }\n};" + "jsCode": "// Build update progress message - removes buttons during operation\nconst data = $('Parse Callback Data').item.json;\nconst containerName = data.containerName;\nconst chatId = data.chatId;\nconst messageId = data.messageId;\n\n// Progress message with no buttons (prevents duplicate actions)\nconst text = `\\u2B06\\uFE0F Updating ${containerName}...\\n\\nPulling latest image and recreating container.\\nThis may take a few minutes.`;\n\n// Empty keyboard removes all buttons during update\nconst reply_markup = { inline_keyboard: [] };\n\nreturn {\n json: {\n containerName,\n chatId,\n messageId,\n progressText: text,\n reply_markup\n }\n};" }, "id": "code-prepare-confirmed-update", "name": "Prepare Confirmed Update", @@ -3393,7 +3393,7 @@ "url": "=https://api.telegram.org/bot{{ $credentials.telegramApi.accessToken }}/editMessageText", "sendBody": true, "specifyBody": "json", - "jsonBody": "={{ JSON.stringify({ chat_id: $json.chatId, message_id: $json.messageId, text: $json.progressText, parse_mode: 'HTML' }) }}", + "jsonBody": "={{ JSON.stringify({ chat_id: $json.chatId, message_id: $json.messageId, text: $json.progressText, parse_mode: 'HTML', reply_markup: $json.reply_markup }) }}", "options": {} }, "id": "http-show-update-progress",