fix(batch): convert Send Batch Confirmation to native Telegram node
HTTP Request node with credential access via URL expression was failing. Native Telegram node handles credentials internally and is more reliable for this use case.
This commit is contained in:
+11
-9
@@ -718,17 +718,19 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"method": "POST",
|
||||
"url": "=https://api.telegram.org/bot{{ $credentials.telegramApi.accessToken }}/sendMessage",
|
||||
"sendBody": true,
|
||||
"specifyBody": "json",
|
||||
"jsonBody": "={{ JSON.stringify({ chat_id: $json.chat_id, text: $json.text, parse_mode: $json.parse_mode, reply_markup: $json.reply_markup }) }}",
|
||||
"options": {}
|
||||
"resource": "message",
|
||||
"operation": "sendMessage",
|
||||
"chatId": "={{ $json.chat_id }}",
|
||||
"text": "={{ $json.text }}",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML",
|
||||
"reply_markup": "={{ JSON.stringify($json.reply_markup) }}"
|
||||
}
|
||||
},
|
||||
"id": "http-send-batch-confirm",
|
||||
"id": "telegram-send-batch-confirm",
|
||||
"name": "Send Batch Confirmation",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.2,
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1.2,
|
||||
"position": [
|
||||
2000,
|
||||
500
|
||||
|
||||
Reference in New Issue
Block a user