Telegram Send Message
A guide to the Telegram Send Message action for sending text messages to a Telegram chat.
The Telegram Send Message Action is a fundamental action for sending text messages to a specified Telegram chat or channel. It's the primary way to send notifications, alerts, or any other text-based communication.
Connection Setup
You will need a Telegram Bot and its API token.
Create a new bot by talking to the BotFather on Telegram.
The BotFather will provide you with an API token.
In AgenticFlow, navigate to Settings > Connections and add a new Telegram Bot Connection, providing your API token.
Configuration
Input Parameters
Connection
Connection
Select the Telegram Bot connection you created.
Chat ID
Text
The unique identifier for the target chat or channel (e.g., @channelusername
or a chat ID).
Text
Text
The text of the message to be sent (1-4096 characters).
Parse Mode
Select
Choose how to parse entities in the message. Options are Markdown
, MarkdownV2
, or HTML
.
Disable Web Page Preview
Boolean
If true
, disables link previews for links in this message.
Disable Notification
Boolean
If true
, the message will be sent silently.
Protect Content
Boolean
If true
, the content of the sent message will be protected from forwarding and saving.
Output Parameters
message
Object
An object containing the details of the sent message, including message_id
.
Example: Sending a Welcome Message
This example shows how to send a personalized welcome message to a new user in a Telegram group.
Trigger on New User: Use a Webhook Action to trigger the workflow when a new user joins the group.
Configure the Telegram Send Message Action:
Connection: Select your Telegram Bot connection.
Chat ID:
{{webhook_action.chat_id}}
Text:
Welcome to the group, {{webhook_action.new_user_name}}! We're glad to have you here.
Parse Mode:
Markdown
This workflow automates a friendly welcome, improving the onboarding experience for new members.
Last updated
Was this helpful?