Telegram Bot to n8n workflow trigger

Hi all, I’m having an issue with messaging the bot. Everything works correctly, but only in the test workflow mode, and when I turn the live toggle from off to on, then back on again to set the flow live.

When none of these are active, any messages I send are just stuck somewhere in the ether. Anyone had any telegram sending issues?

{
“meta”: {
“instanceId”: “0ce372dee332818ef9b4209a4c9f2ca132786baf9121368927561de85b0a293e”
},
“nodes”: [
{
“parameters”: {
“chatId”: “={{ $(‘Telegram Trigger’).item.json.message.from.id }}”,
“text”: “={{ $json.output }}”,
“additionalFields”: {
“appendAttribution”: false
}
},
“id”: “1c273502-227c-43d9-bb23-e1a5dd1c944d”,
“name”: “Respond to Me”,
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
940,
460
],
“credentials”: {
“telegramApi”: {
“id”: “wKcsVlh8uu1ckQ51”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“updates”: [
“message”,
“channel_post”
],
“additionalFields”: {}
},
“id”: “ef68eec6-47ac-4aab-a0de-2d4b0110b491”,
“name”: “Telegram Trigger”,
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.1,
“position”: [
460,
460
],
“webhookId”: “2194a6b2-2302-4406-9c8c-207161b7eb22”,
“credentials”: {
“telegramApi”: {
“id”: “wKcsVlh8uu1ckQ51”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “={{ $json.message.text }}”,
“options”: {
“systemMessage”: “You are a personal assistant. Here is the current time/date: {{ $now.format(‘DD’)}}”
}
},
“id”: “7c43adb3-384f-43f3-9ae0-f3572217cd90”,
“name”: “Personal Assistant”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 1.6,
“position”: [
620,
460
],
“retryOnFail”: false
}
],
“connections”: {
“Telegram Trigger”: {
“main”: [
[
{
“node”: “Personal Assistant”,
“type”: “main”,
“index”: 0
}
]
]
},
“Personal Assistant”: {
“main”: [
[
{
“node”: “Respond to Me”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {}
}

sends when in test workflow mode or switching the toggle on and off, but hangs when the automation is live

Information on your n8n setup

  • n8n version: - Cloud
  • Database (default: SQLite): - Default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): - Cloud
  • Operating system: - MacOS

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Quick bump

Does it hang (infinite loop) or does it end execution? And in which node?

hi, it just hangs in telegram, and I think in the telegram node?