fix(05-01): switch Show Menu to native Telegram node
HTTP Request node with $credentials reference was causing 404 errors. Native Telegram node handles credentials more reliably for static menus. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+24
-9
@@ -2071,17 +2071,32 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"method": "POST",
|
||||
"url": "=https://api.telegram.org/bot{{ $credentials.telegramApi.accessToken }}/sendMessage",
|
||||
"sendBody": true,
|
||||
"specifyBody": "json",
|
||||
"jsonBody": "={{ JSON.stringify({ \"chat_id\": $json.message.chat.id, \"text\": \"Use buttons below or type commands:\", \"parse_mode\": \"HTML\", \"reply_markup\": { \"keyboard\": [[{\"text\": \"Status\"}], [{\"text\": \"Start\"}, {\"text\": \"Stop\"}], [{\"text\": \"Restart\"}, {\"text\": \"Update\"}], [{\"text\": \"Logs\"}]], \"is_persistent\": true, \"resize_keyboard\": true, \"one_time_keyboard\": false } }) }}",
|
||||
"options": {}
|
||||
"resource": "message",
|
||||
"operation": "sendMessage",
|
||||
"chatId": "={{ $json.message.chat.id }}",
|
||||
"text": "Use buttons below or type commands:",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML",
|
||||
"replyMarkup": "replyKeyboard",
|
||||
"replyKeyboard": {
|
||||
"rows": [
|
||||
{ "row": { "buttons": [{ "text": "Status" }] } },
|
||||
{ "row": { "buttons": [{ "text": "Start" }, { "text": "Stop" }] } },
|
||||
{ "row": { "buttons": [{ "text": "Restart" }, { "text": "Update" }] } },
|
||||
{ "row": { "buttons": [{ "text": "Logs" }] } }
|
||||
]
|
||||
},
|
||||
"replyKeyboardOptions": {
|
||||
"resize_keyboard": true,
|
||||
"one_time_keyboard": false,
|
||||
"is_persistent": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "http-show-menu",
|
||||
"id": "telegram-show-menu",
|
||||
"name": "Show Menu",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.2,
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1.2,
|
||||
"position": [
|
||||
1120,
|
||||
300
|
||||
|
||||
Reference in New Issue
Block a user