Hello everyone! I am trying to prevent unwanted execution costs in my workflows caused by unsolicited messages sent to my Telegram bot. The core issue is that Telegram does not allow bots to block users or to prevent incoming updates from groups or channels. As a result, even though I can stop these users from progressing through the workflow (for example, by using IF nodes and terminating the flow early), I cannot prevent their messages from triggering the workflow in the first place. This leads to unnecessary executions being consumed every time someone sends a command or message to the bot — even when that user is not supposed to interact with it. I would like to know whether there is any recommended way to avoid these unwanted triggers or to filter out such updates before they count as an execution in n8n Cloud.
hello @Elizaveta_Pashkovska
Unfortunately, the Bot API doesn’t provide any whitelists/blacklists, so it’s not possible to filter out users on this level.
You can try setting the options “restrict to chat ids / user ids” as these executions might be dropped earlier (seems they do not count).
Hello, yes, I tried, but it broke all flow. Even from correct ids(
But thanks for help.
