Telegram

Telegram

Send Telegram messages and start workflows from bot commands

Overview

Connect a Telegram bot to Attio. Use the bot in workflows to send messages, send polls, and add emoji reactions to messages.

Start a workflow when the bot receives a specific command in a chat. Start a workflow when a person joins or leaves a chat.

How it works

Triggers

Command received

Starts a workflow when the bot receives a specific command in the chat that you select. The command /notify also matches /notify@yourbot and /notify followed by more text. The trigger gives the message ID, chat ID, chat type, user ID, command, message text, and received time.

Person joined chat

Starts a workflow when a person joins the chat that you select. The trigger gives the user ID, first name, last name, username, and joined time.

Person left chat

Starts a workflow when a person leaves the chat that you select. The trigger gives the same person data as Person joined chat. The trigger ignores bots.

Steps

Send message

Sends a plain-text message to a chat. A message can have a maximum of 4096 characters. You can send the message as a reply to a message ID. If the original message does not exist, the step fails.

React to message

Adds one emoji reaction to a message. Use the message ID from a Command received trigger.

Send poll

Sends a poll to a chat. A poll has one question and 2 to 12 options. You can send a regular poll or a quiz with one correct answer. You can also set anonymous votes, multiple answers, an open time of 5 to 600 seconds, closed on send, silent send, and protection from forwarding and saving.

Configure

Create a Telegram bot

  1. In Telegram, open a chat with @BotFather.

  2. Send the command /newbot.

  3. Send a display name for the bot.

  4. Send a username for the bot. The username must end in "bot", for example acme_bot.

  5. Copy the token that BotFather sends.

Connect the bot to Attio

  1. Install the Telegram app.

  2. Go to Workspace settings → Apps → Telegram.

  3. Find Workspace connection and click Connect.

  4. Paste the BotFather token.

  5. Submit the dialog.

Add the bot to your chats

  1. For a private chat, send /start to the bot.

  2. For a group, add the bot as a member.

  3. In the group, send a command to the bot, for example /notify.

  4. In the workflow block, select the chat in the Chat field.