Telegram trigger issue with messaging response

Describe the problem/error/question

I connect telegram with n8n(locally setup with ngrok https url) when I execute trigger, only that time it listens bot message(inactive mode) and single time. Again if I want to message from bot. I have to trigger telegram and execute steps then it gets the message(still in inactive mode). If I turn on active workflow it says telegram can’t listen on test and production at the same time. Suggest me how should send multiple messages without pressing each time.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

hello @YASH_Patel1

Please, share the screenshot of the error

Whenever I tried to make a message on Telegram, I deactivated and executed the workflow, then it listened just only onetime (execute again, then listen, and on and on. Otherwise, when I activate the workflow, it shows a message as paste below

Deactivate workflow to execute

Because of limitations in Telegram Trigger, n8n can’t listen for test executions at the same time as listening for production ones

{
“nodes”: [
{
“parameters”: {
“updates”: [
“*”
],
“additionalFields”: {}
},
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.2,
“position”: [
0,
0
],
“id”: “39b17fda-d494-4b49-8326-a44b544d3580”,
“name”: “Telegram Trigger”,
“webhookId”: “eed672db-08b6-4392-9c40-08e1559b5504”,
“notesInFlow”: false,
“alwaysOutputData”: false,
“credentials”: {
“telegramApi”: {
“id”: “d3Pm1LdA6Hh3hzf1”,
“name”: “Telegram account”
}
},
“onError”: “continueRegularOutput”
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “0283f02aaaa90a19e2d9317520e1e57e59c6093fc2962a575a42879d13271839”
}
}

I have forwarded http local 5678 to https//…ngrok.

As stated in the error Message, the Telegram API does not support multiple Webhook URLs.
Since n8n does provide 2 webhook URLs, one for production and one for testing, you need to toggle the production (Active) off during tests and back on when you’re finished.

It’s not supported by n8n test-webhooks to always listen, but only when “Execute Workflow” is pressed.

When the workflow is active, you should see executions in the “Executions” tab of your workflow for each message you’re sending. Is that not the case?

i tried both ways toggle on+message sent from telegram+no execution pressed=no messaged received. with error message as i mentioned

toggle off +execution pressed=messaged received one time.

what i want is when i turned on(activate workflow) work with multiple messages send from telegram. i should see messageS in trigger.

As stated, this is not possible. Have you looked into your “Executions” Tab? Are you seeing the executions there at all? If yes, it’s expected behaviour.

You can’t activate your Telegram Workflow and at the same time see Data in the Editor Tab.
Also you can’t see more than one Trigger message in your Editor.
It’s technically not possible. However, you should be able to see the data in your past Executions.

I want to send multiple messages for my content creation. How trigger receive multiple messages?

What should I do then? because i can execute msg each time right?

Each message will be processed as a separate n8n execution. If you’d like to combine the messages, you should place the execution results into a Data Table and create logic to fetch the table once you have enough messages in the table (or based on another condition)

How do I solve this? Making a table and creating logic?

yes. something like the below.

On new message:

  1. Put a message in the table
  2. Run a wait node with a 5-minute wait time
  3. During that time, collect other messages in the table

After 5 minutes have passed

  1. Get all entries from the table
  2. Clear the table
  3. Do whatever you need with the collection of messages.

The rest executions in the wait stage will be executed with an empty table, so nothing will be processed

1 Like