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
-
In Telegram, open a chat with @BotFather.
-
Send the command /newbot.
-
Send a display name for the bot.
-
Send a username for the bot. The username must end in "bot", for example acme_bot.
-
Copy the token that BotFather sends.
Connect the bot to Attio
-
Install the Telegram app.
-
Go to Workspace settings → Apps → Telegram.
-
Find Workspace connection and click Connect.
-
Paste the BotFather token.
-
Submit the dialog.
Add the bot to your chats
-
For a private chat, send /start to the bot.
-
For a group, add the bot as a member.
-
In the group, send a command to the bot, for example /notify.
-
In the workflow block, select the chat in the Chat field.