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_idnumber
chat_idnumber
texttext
from_user_idnumber
from_usernametext
datenumber

Actions

ActionWhat it does
Create an invite linkGenerate a new join link for a chat.
Forward a messageForward a message from one chat to another.
Get chat member countRetrieve the number of members in a chat.
Pin a chat messagePin a message in a chat with optional silent notification.
Send a messageSend a text message to a Telegram chat.
Send a photoSend a photo to a Telegram chat, with an optional caption.

Generate a new join link for a chat.

Inputs

Chat IDchat_idtextRequired
The chat to create an invite link for.
Namenametext
Optional label to help you recognize this link, up to 32 characters.
Expiration dateexpire_datedate and time
Optional. When the link should expire. Leave blank for a link that never expires.
Member limitmember_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 chatchat_idtextRequired
The chat to forward the message to.
Source chatfrom_chat_idtextRequired
The chat that currently has the message.
Message IDmessage_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 IDchat_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 IDchat_idtextRequired
The chat that has the message.
Message IDmessage_idnumberRequired
The ID of the message to pin.
Disable notificationdisable_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 IDchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
TexttexttextRequired
The text of the message to send.
Text formattingparse_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 IDchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
Photo URLphoto_urltextRequired
A link to the photo you want to send.
Captioncaptiontext
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"
}

On this page