Several workflows with Telegram trigger

Hi @N8N_userN, glad to hear n8n is useful for you! From taking a quick look at the Telegram Bot API documentation it sounds indeed like they only allow one webhook per bot.

So with this limitation in mind you would indeed need a single “master” workflow receiving the webhooks. To keep things more manageable you can try the following:

  1. Use the Switch node instead of the IF node. The Switch node provides four outputs instead of the two outputs the IF node provides. If you have more than four cases you’d need to use additional Switch nodes for now (but you might want to consider voting on this feature request: Add more outputs to Switch Node - #8 by maxT).
  2. Put some of your logic in child workflows where possible and call them from your master workflow using the Execute Workflow node. This way you can avoid having multiple complex or lengthy branches in a single workflow.

Hope this already provides some help with cleaning up your big workflow :slight_smile:

2 Likes