I’ve set up my docked n8n instance, created a new telegram bot, added a key and added a telegram trigger on any event (*) to my workflow (i’ve tried a ‘message’ as well)
But it never triggers an event no matter how I tried: Listen for event or Ececute the workflow – there is 0 executions from telegram trigger
I’ve tested simple webhook with juest GET trigger and it works fine.
I’ve checked all the threads here and found no any useful hints. Please help me to investigate.
I wish such errors would be displayed in n8n interface
Hi @sbrin, I am sorry to hear you’re having trouble. n8n would (usually) display such errors provided it receives them when registering a webhook.
Telegram specifically is a bit tricky though. Many services allow you to register as many webhooks as needed, but Telegram only allows a single webhook per bot. n8n would register a webhook whenever a workflow using the Telegram trigger node is either activated or manually executed, and Telegram disables other webhooks when this happens without throwing an error.
So you want to make sure you have a valid public URL to which Telegram can send webhooks and also make sure you only have one active workflow using the Telegram trigger at a time (or have multiple Telegram bots and use different credentials in each workflow).
Also make sure to save all executions in your workflow settings. Depending on your global settings, n8n might not save successful executions (meaning the execution list would seem empty, even if everything is working as expected and workflows are executed).
But what about custom SSL certificate? I know Telegram API has an option to provide my own cert through webhook call when we register it. How can we use it with n8n?
That’s not a feature currently supported by n8n I am afraid.
I think your best bet would be to use the generic webhook node in n8n instead of the trigger node, and then manually register the webhook URL through the Telegram API (allowing you to set the certificate value when using setWebhook).
Alternatively you could consider using a trusted SSL certificate from (for example) Let’s Encrypt in which case you wouldn’t have to manually register the certificate with Telegram.