Telegram trigger is stuck in Listening for test event

Describe the problem/error/question

I’ve been trying a lot of options to make it work, but it looks like n8n doesn’t receive the messages that I send to the telegram bot, they keep pending.

Here is the pending_update_count curl command saying that they keep pending:

C:\Users\klepto>curl https://api.telegram.org/botMY_BOT_TOKEN_G/getWebhookInfo
{"ok":true,"result":{"url":"a normal webhook url generated by n8n tunnel","has_custom_certificate":false,"pending_update_count":59,"max_connections":40,"ip_address":"hmm"}}

What is the error message (if any)?

Listening for test event

Please share your workflow

Share the output returned by the last node

Nothing

Information on your n8n setup

  • n8n version: Latest
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): idk
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Tried with both docker and npm, but the last try was npm
  • Operating system: Windows 10

Hi @maniaco Welcome to the n8n community! :tada:

May I know what is the command you’re using to start n8n?

Just wanna make sure you’re running with tunnel flag

Sure, I’m using n8n start --tunnel

Just want to make sure.

Does you Telegram bot has more than one Active Telegram Trigger?

Ref: Telegram trigger event doesn't work - #4 by MutedJam

Because as per Telegram Bot API pending_update_count means Number of updates awaiting delivery

1 Like

It shouldn’t because I tried to delete all n8n files and start from 0 creating an owner account, etc. I only have one workflow and one telegram trigger

But you gave me an idea: Try to create a new bot with BotFather.

Alright, I tried this idea but didn’t worked.

1 Like

Solved, in windows 10, I installed ngrok with npm install ngrok then I entered the command ngrok http 5678. After that, I changed the variable WEBHOOK_URL with the command set WEBHOOK_URL=https://abdcef12345.ngrok-free.app and finally entered n8n command to start n8n and now detects the messages

3 Likes

Glad you have solved it. Happy Automating! :tada:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.