Telegram
App · Messaging · 6 actions · 1 trigger
Send Telegram messages, manage chat pins, and generate invite links.
Triggers
Start a workflow when something happens in Telegram. See how triggers work.
New Telegram message
Starts the workflow when your Telegram bot receives a new message.
Filters
Narrow which events start a run.
chat_id
Event fields
What a run starts with. Later steps read each field with an @ reference.
message_idnumberchat_idnumbertexttextfrom_user_idnumberfrom_usernametextdatenumber
Actions
| Action | What it does |
|---|---|
| Create an invite link | Generate a new join link for a chat. |
| Forward a message | Forward a message from one chat to another. |
| Get chat member count | Retrieve the number of members in a chat. |
| Pin a chat message | Pin a message in a chat with optional silent notification. |
| Send a message | Send a text message to a Telegram chat. |
| Send a photo | Send a photo to a Telegram chat, with an optional caption. |
Create an invite link
Generate a new join link for a chat.
Inputs
- Chat ID
chat_idtextRequired - The chat to create an invite link for.
- Name
nametext - Optional label to help you recognize this link, up to 32 characters.
- Expiration date
expire_datedate and time - Optional. When the link should expire. Leave blank for a link that never expires.
- Member limit
member_limitnumber - Optional. The maximum number of people who can join using this link, between 1 and 99999.From 1 to 99999.
Outputs
expire_datenumber- Link expiration timestamp.
invite_linktext- Telegram invite link URL.
member_limitnumber- Maximum users allowed.
statustext- Action execution status.
Example output
{
"expire_date": 1706745600,
"invite_link": "https://t.me/+abcdef123456",
"member_limit": 100,
"status": "success"
}Forward a message
Forward a message from one chat to another.
Inputs
- Destination chat
chat_idtextRequired - The chat to forward the message to.
- Source chat
from_chat_idtextRequired - The chat that currently has the message.
- Message ID
message_idnumberRequired - The ID of the message to forward.
Outputs
chat_idnumber- Destination chat ID.
message_idnumber- Forwarded message ID.
statustext- Action execution status.
Example output
{
"chat_id": 123456789,
"message_id": 12347,
"status": "success"
}Get chat member count
Retrieve the number of members in a chat.
Inputs
- Chat ID
chat_idtextRequired - The chat to count members in.
Outputs
countnumber- Member count.
statustext- Action execution status.
Example output
{
"count": 147,
"status": "success"
}Pin a chat message
Pin a message in a chat with optional silent notification.
Inputs
- Chat ID
chat_idtextRequired - The chat that has the message.
- Message ID
message_idnumberRequired - The ID of the message to pin.
- Disable notification
disable_notificationtrue/false - Set to true to pin the message without notifying members.
Outputs
statustext- Action execution status.
Example output
{
"status": "success"
}Send a message
Send a text message to a Telegram chat.
Inputs
- Chat ID
chat_idtextRequired - Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
- Text
texttextRequired - The text of the message to send.
- Text formatting
parse_modetext - Optional. How to format the message text. Leave blank for plain text. Prefer MarkdownV2 over Markdown, which Telegram keeps only for backward compatibility.One of:
HTML,MarkdownV2,Markdown(Markdown (legacy)).
Outputs
chat_idnumber- Telegram chat ID.
message_idnumber- Telegram message ID.
statustext- Action execution status.
Example output
{
"chat_id": 987654321,
"message_id": 12345,
"status": "success"
}Send a photo
Send a photo to a Telegram chat, with an optional caption.
Inputs
- Chat ID
chat_idtextRequired - Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
- Photo URL
photo_urltextRequired - A link to the photo you want to send.
- Caption
captiontext - Optional caption to show below the photo, up to 1024 characters.
Outputs
chat_idnumber- Telegram chat ID.
message_idnumber- Telegram message ID.
statustext- Action execution status.
Example output
{
"chat_id": 987654321,
"message_id": 12346,
"status": "success"
}