AXL Knowledge Base

Telegram Groups/Channels App Automation

~2 min read Section: Automations

Each Telegram group or channel connected through the Telegram Groups/Channels app has its own automation. It reacts to messages with your keywords in that group: for example, when a member writes "homework", it sends them the instructions or creates a task for a curator. Approving join requests and removing members without access are done by the app itself, not by the automation. To connect the app and a group, see "Telegram Groups/Channels App".

Create an Automation for the Telegram Groups/Channels App

Open the automation

Go to Settings → Apps, open the Connected tab and click Manage on the Telegram Groups/Channels app. In the Groups list, click the Manage Automation icon next to the group. The icon appears once the group's status is Connected. The same link is in the group's Edit Group window.

Connected Applications tab with the Telegram Groups and Channels app and Manage highlighted.
Telegram Groups and Channels list with the Scenario management icon highlighted beside a group.

Set up the Message Received trigger

The automation has one trigger: Message Received. Drag it onto the canvas and open its settings through the gear icon → Configure Step. Add the words that start it and choose how each one matches: Exact Match (the whole message is the word), Contains (the word appears anywhere, even inside another word) and Ignore Case. The matching works the same way as in chat channels: see "Chat Channel Automation".

Important:

  • A trigger with no words never fires, and only text messages count.
  • While a member's previous run of this automation is still going, for example waiting on a Delay, their new messages do not start another run.
Telegram group Events palette with Message Received and its Configure node menu.
Message Received settings with word matching, Complete Match, Contains and Ignore Case options.

Add the actions

Open the Actions tab, drag the steps you need onto the canvas and connect them to the trigger. Configure each step through its gear icon → Configure Step.

To use the member's message in a step, click Add Variables and select #TelegramGroup.MessageText# from the Telegram Group group. For example, a task for a curator with the text New question in the group: #TelegramGroup.MessageText#.

For all actions, see "Types of Actions in Automations and Their Settings"; for variables, see "Variables in Automations"; to connect, copy or delete steps, see "Automation Events and Actions" and "Deleting and Copying Steps". For a worked example, see "How to Automate Telegram Groups and Channels".

Telegram group Actions palette and the Configure node menu for Send Message.

Activate the automation

Open each step that still needs configuration, fill in its settings and save them. Then turn on the switch in the upper-left corner of the canvas so it reads Active.