Telegram

App · Messaging · 35 actions · 1 trigger

Send, edit and delete Telegram messages, send photos, documents and polls, react to and pin messages, 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
Answer a button pressBeta.
Answer an inline searchBeta.
Change a chat's descriptionBeta.
Check someone's chat membershipBeta.
Create an invite linkGenerate a new join link for a chat.
Delete a messageDelete a message from a chat.
Download a fileBeta.
Edit a messageChange the text of a message the bot sent, such as a status update posted earlier in the workflow.
Forward a messageForward a message from one chat to another.
Get chat detailsBeta.
Get chat member countRetrieve the number of members in a chat.
Leave a chatBeta.
Let someone back into a chatBeta.
List chat adminsBeta.
Pin a chat messagePin a message in a chat with optional silent notification.
React to a messageAdd an emoji reaction, such as 👍 or 🎉, to a message in a chat.
Remove someone from a chatBeta.
Rename a chatBeta.
Revoke an invite linkBeta.
Send a documentSend a file to a Telegram chat from a link, with an optional caption.
Send a GIFBeta.
Send a locationBeta.
Send a messageSend a text message to a Telegram chat.
Send a message with buttonsBeta.
Send a photoSend a photo to a Telegram chat, with an optional caption.
Send a pollAsk a question in a Telegram chat with up to 12 answers to choose from.
Send a rich messageBeta.
Send a stickerBeta.
Send a videoBeta.
Send an albumBeta.
Send an audio fileBeta.
Show a draft messageBeta.
Show a draft rich messageBeta.
Show a typing statusBeta.
Unpin a chat messageBeta.

Answer a button press

Beta. Answer someone who pressed one of your bot's buttons, with a short note at the top of their chat or a pop-up. Until it's answered, Telegram shows a spinner on the button.

Inputs

Button press IDcallback_query_idtextRequired
Beta. The press to answer, as the 'Button pressed' trigger gives it in callback_query_id.
Notetexttext
Beta. What to tell them, up to 200 characters, such as Thanks, you're booked. Leave blank to just stop the spinner.
Show as a pop-upshow_alerttrue/false
Beta. Show the note in a pop-up they close, rather than at the top of the chat.Default: false.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

Beta. Give someone results to pick from after they typed your bot's @name and some words in a chat. The one they pick is sent to that chat in their name.

Inputs

Search IDinline_query_idtextRequired
Beta. The search to answer, as the 'New inline search' trigger gives it in inline_query_id.
ResultsresultstextRequired
Beta. Up to 50 results, one per line. A line is the text sent when it's picked, or 'Title | Text to send' to show a different title in the list.
Remember for (seconds)cache_timenumber
Beta. How long Telegram may reuse these results for the same words. Telegram uses 300 when left blank.At least 0.

Outputs

result_countnumber
Beta. How many results were offered.
statustext
Beta. success once it's answered.
Example output
{
  "result_count": 2,
  "status": "success"
}

Change a chat's description

Beta. Change, or clear, the description of a group or channel. The bot must be an admin allowed to change the chat's info.

Inputs

Chatchat_idtextRequired
Beta. The group or channel.
New descriptiondescriptiontext
Beta. The new description, up to 255 characters. Leave blank to clear it.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

Check someone's chat membership

Beta. Find out whether a person is in a group or channel, and their role there, for example before giving them access to something members get.

Inputs

Chatchat_idtextRequired
Beta. The group or channel.
Person's user IDperson_idnumberRequired
Beta. The person's numeric Telegram user ID, such as 123456789. The 'New message' trigger gives it as from_user_id.

Outputs

first_nametext
Beta. Their first name.
is_membertrue/false
Beta. True when they're in the chat now.
last_nametext
Beta. Their last name. Empty when they have none.
statustext
Beta. creator, administrator, member, restricted, left or kicked (removed).
user_idnumber
Beta. The person's user ID.
usernametext
Beta. Their @name, without the @. Empty when they have none.
Example output
{
  "first_name": "Ada",
  "is_member": true,
  "last_name": "Lovelace",
  "status": "member",
  "user_id": 123456789,
  "username": "ada"
}

Generate a new join link for a chat.

Inputs

Chatchat_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"
}

Delete a message

Delete a message from a chat. Telegram allows it only within 48 hours of the message being sent, and for someone else's message only where the bot is an admin that can delete messages.

Inputs

Chatchat_idtextRequired
The chat that has the message.
Message IDmessage_idnumberRequired
The ID of the message to delete.

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"
}

Download a file

Beta. Save a file sent in Telegram, such as a photo or document, as a Lodol document, so later steps can use it. Telegram lets a bot download files up to 20 MB.

Inputs

File IDfile_idtextRequired
Beta. The file's ID, as a trigger such as 'New channel post' or a step such as 'Send an audio file' gives it in file_id.

Outputs

content_typetext
Beta. The kind of file, such as image/jpeg.
document_reftext
Beta. The saved document, for steps that take a file.
documentslist
Beta. The saved document, as a one-item list for steps that take several.
file_idtext
Beta. The file's ID in Telegram.
file_unique_idtext
Beta. The file's lasting ID, the same for every bot. It can't be used to download it.
filenametext
Beta. The file's name.
size_bytesnumber
Beta. Its size in bytes.
statustext
Beta. success once it's saved.
urltext
Beta. The Lodol address that serves the saved document.
Example output
{
  "content_type": "image/jpeg",
  "document_ref": "doc_7f3a2b",
  "documents": [
    {
      "content_type": "image/jpeg",
      "document_ref": "doc_7f3a2b",
      "filename": "file_12.jpg",
      "size_bytes": 48213,
      "url": "/actions/core/serve-document/doc_7f3a2b?teamId=64b8f0c2a1b2c3d4e5f60718"
    }
  ],
  "file_id": "AgACAgIAAxkBAAIBdmVh",
  "file_unique_id": "AQADm7kxG9w",
  "filename": "file_12.jpg",
  "size_bytes": 48213,
  "status": "success",
  "url": "/actions/core/serve-document/doc_7f3a2b?teamId=64b8f0c2a1b2c3d4e5f60718"
}

Edit a message

Change the text of a message the bot sent, such as a status update posted earlier in the workflow.

Inputs

Chatchat_idtextRequired
The chat that has the message.
Message IDmessage_idnumberRequired
The ID of the message to change, such as the one Send a message returned. The bot can only edit its own messages.
New texttexttextRequired
The message's new text, which replaces the old.
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"
}

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 details

Beta. Look up a chat: its name, whether it's a group, channel or private chat, its description and public @name.

Inputs

Chatchat_idtextRequired
Beta. The chat to look up.

Outputs

chat_idnumber
Beta. The chat's ID.
descriptiontext
Beta. The group or channel's description. Empty when none.
invite_linktext
Beta. Its main invite link, when the bot can see it.
titletext
Beta. The chat's name, or the person's name for a private chat.
typetext
Beta. private, group, supergroup or channel.
usernametext
Beta. Its public @name, without the @. Empty when it has none.
Example output
{
  "chat_id": -1001234567890,
  "description": "Fresh bread alerts and weekly specials.",
  "invite_link": "https://t.me/+abcdef123456",
  "title": "Bakery regulars",
  "type": "supergroup",
  "username": "bakeryregulars"
}

Get chat member count

Retrieve the number of members in a chat.

Inputs

Chatchat_idtextRequired
The chat to count members in.

Outputs

countnumber
Member count.
statustext
Action execution status.
Example output
{
  "count": 147,
  "status": "success"
}

Leave a chat

Beta. Take your bot out of a group or channel. It stops seeing and sending messages there until someone adds it back.

Inputs

Chatchat_idtextRequired
Beta. The group or channel to leave.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

Let someone back into a chat

Beta. Lift a removal, so the person can join the group or channel again with an invite link. It doesn't add them back by itself, and does nothing to someone who wasn't removed.

Inputs

Chatchat_idtextRequired
Beta. The group or channel.
Person's user IDperson_idnumberRequired
Beta. The person's numeric Telegram user ID, such as 123456789. The 'New message' trigger gives it as from_user_id.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

List chat admins

Beta. List the admins of a group or channel, with each one's role and name. Other bots are left out.

Inputs

Chatchat_idtextRequired
Beta. The group or channel.

Outputs

adminslist
Beta. The chat's admins.
countnumber
Beta. How many admins there are.
Example output
{
  "admins": [
    {
      "custom_title": "Owner",
      "first_name": "Ada",
      "is_bot": false,
      "last_name": "Lovelace",
      "status": "creator",
      "user_id": 123456789,
      "username": "ada"
    }
  ],
  "count": 1
}

Pin a chat message

Pin a message in a chat with optional silent notification.

Inputs

Chatchat_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"
}

React to a message

Add an emoji reaction, such as 👍 or 🎉, to a message in a chat. The bot has one reaction per message, so this replaces any it added before.

Inputs

Chatchat_idtextRequired
The chat that has the message.
Message IDmessage_idnumberRequired
The ID of the message to react to, such as the one the New message trigger starts a run with.
ReactionemojitextRequired
The emoji to react with. Telegram allows only its reaction emoji, such as 👍 👎 ❤ 🔥 🎉 👀 🙏 💯 or 😢.

Outputs

chat_idnumber
Telegram chat ID.
emojitext
The reaction added.
message_idnumber
Telegram message ID.
statustext
Action execution status.
Example output
{
  "chat_id": 987654321,
  "emoji": "\ud83d\udc4d",
  "message_id": 12345,
  "status": "success"
}

Remove someone from a chat

Beta. Remove a person from a group or channel and stop them rejoining until they're let back in, for example when a paid membership ends. The bot must be an admin allowed to ban users.

Inputs

Chatchat_idtextRequired
Beta. The group or channel.
Person's user IDperson_idnumberRequired
Beta. The person's numeric Telegram user ID, such as 123456789. The 'New message' trigger gives it as from_user_id.
Delete their messagesrevoke_messagestrue/false
Beta. Also delete everything they wrote in a group. Channels always keep messages.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

Rename a chat

Beta. Change a group or channel's name. The bot must be an admin allowed to change the chat's info.

Inputs

Chatchat_idtextRequired
Beta. The group or channel to rename.
New nametitletextRequired
Beta. The chat's new name, up to 128 characters.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

Beta. Stop an invite link from working, so nobody else can join with it. People who already joined stay.

Inputs

Chatchat_idtextRequired
Beta. The chat the link is for.
Invite linkinvite_linktextRequired
Beta. The link to revoke, such as https://t.me/+abcdef123456, as 'Create an invite link' gives it.

Outputs

invite_linktext
Beta. The link that no longer works.
statustext
Beta. success once the link is revoked.
Example output
{
  "invite_link": "https://t.me/+abcdef123456",
  "status": "success"
}

Send a document

Send a file to a Telegram chat from a link, with an optional caption. Telegram takes PDF, ZIP and GIF files this way, up to 20 MB.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
File linkdocument_urltextRequired
A public link to the file, such as a PDF. Telegram downloads it from there.
Captioncaptiontext
Optional caption to show below the file, 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": 12348,
  "status": "success"
}

Send a GIF

Beta. Send a GIF, or a short MP4 without sound, to a Telegram chat from a link, up to 20 MB. It plays on its own in the chat.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
GIF linkanimation_urltextRequired
Beta. A public link to the GIF or silent MP4. Telegram downloads it from there.
Captioncaptiontext
Beta. Text to show below the GIF, up to 1024 characters.

Outputs

chat_idnumber
Beta. The chat's ID.
file_idtext
Beta. The file's ID in Telegram, to send it again or download it without uploading it again.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "file_id": "CgACAgQAAxkBAAIBdGVh",
  "message_id": 12353,
  "status": "success"
}

Send a location

Beta. Send a pin on the map to a Telegram chat, such as your shop or a meeting point.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
LatitudelatitudenumberRequired
Beta. The place's latitude, from -90 to 90, such as 51.5072.From -90 to 90.
LongitudelongitudenumberRequired
Beta. The place's longitude, from -180 to 180, such as -0.1276.From -180 to 180.

Outputs

chat_idnumber
Beta. The chat's ID.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "message_id": 12350,
  "status": "success"
}

Send a message

Send a text message to a Telegram chat.

Inputs

Chatchat_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 message with buttons

Beta. Send a text message with buttons under it. A button can open a link, or tell your bot it was pressed, which starts the 'Button pressed' trigger with the button's label.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
TexttexttextRequired
Beta. The message's text, up to 4096 characters.
ButtonsbuttonstextRequired
Beta. One button per line. A label alone, such as Yes, is a button your bot hears about; 'Label | https://...' opens that link. A label your bot hears about can be up to 64 letters.
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
Beta. The chat's ID.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "message_id": 12357,
  "status": "success"
}

Send a photo

Send a photo to a Telegram chat, with an optional caption.

Inputs

Chatchat_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"
}

Send a poll

Ask a question in a Telegram chat with up to 12 answers to choose from. Telegram shows the votes as they come in.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
QuestionquestiontextRequired
The question to ask, up to 300 characters.
AnswersoptionstextRequired
The answers people choose from, one per line: 1 to 12, each up to 100 characters.
Anonymousis_anonymoustrue/false
Hide who voted for what. Turn off to show each person's vote; channels only allow anonymous polls.Default: true.
Allow more than one answerallows_multiple_answerstrue/false
Let each person pick several answers.Default: false.

Outputs

chat_idnumber
Telegram chat ID.
message_idnumber
Telegram message ID.
statustext
Action execution status.
Example output
{
  "chat_id": 987654321,
  "message_id": 12349,
  "status": "success"
}

Send a rich message

Beta. Send a message with headings, lists, tables and quotes, written in HTML or Markdown, up to 32,768 characters.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
MessagetexttextRequired
Beta. The message, written in the format chosen below: headings, lists, tables, quotes and links. Up to 32,768 characters.
Written inrich_formattext
Beta. Whether the message is written in HTML or Markdown.One of: html, markdown. Default: html.

Outputs

chat_idnumber
Beta. The chat's ID.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "message_id": 12358,
  "status": "success"
}

Send a sticker

Beta. Send a sticker to a Telegram chat: one Telegram already has, by its file ID, or a .WEBP image from a link.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
StickerstickertextRequired
Beta. The sticker's file ID, such as one a trigger or an earlier 'Send a sticker' handed on, or a public link to a .WEBP image.

Outputs

chat_idnumber
Beta. The chat's ID.
file_idtext
Beta. The file's ID in Telegram, to send it again or download it without uploading it again.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "file_id": "CAACAgIAAxkBAAIBdWVh",
  "message_id": 12354,
  "status": "success"
}

Send a video

Beta. Send a video to a Telegram chat from a link, with an optional caption. Telegram takes MP4 videos this way, up to 20 MB.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
Video linkvideo_urltextRequired
Beta. A public link to the MP4 video. Telegram downloads it from there.
Captioncaptiontext
Beta. Text to show below the video, up to 1024 characters.

Outputs

chat_idnumber
Beta. The chat's ID.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "message_id": 12351,
  "status": "success"
}

Send an album

Beta. Send 2 to 10 photos and videos to a Telegram chat as one album, with an optional caption under it.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
Photo linksphoto_urlstext
Beta. Public links to the photos, one per line. They come first in the album, in this order.
Video linksvideo_urlstext
Beta. Public links to MP4 videos, one per line. They come after the photos. Photos and videos together must be 2 to 10.
Captioncaptiontext
Beta. Text to show under the album, up to 1024 characters.

Outputs

chat_idnumber
Beta. The chat's ID.
message_idnumber
Beta. The first item's message ID.
message_idslist
Beta. Each item's message ID, in album order.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "message_id": 12355,
  "message_ids": [
    12355,
    12356
  ],
  "status": "success"
}

Send an audio file

Beta. Send an MP3 or M4A to a Telegram chat from a link, shown in Telegram's music player, up to 20 MB.

Inputs

Chatchat_idtextRequired
Which chat to send to. Pick it from the list, or switch to manual entry to type a numeric chat ID.
Audio linkaudio_urltextRequired
Beta. A public link to the MP3 or M4A file. Telegram downloads it from there.
Captioncaptiontext
Beta. Text to show below the audio, up to 1024 characters.
Track nametitletext
Beta. The name shown in the player, such as Weekly update.
Performerperformertext
Beta. Who's speaking or playing, shown in the player.

Outputs

chat_idnumber
Beta. The chat's ID.
file_idtext
Beta. The file's ID in Telegram, to send it again or download it without uploading it again.
message_idnumber
Beta. The new message's ID in the chat.
statustext
Beta. success once it's sent.
Example output
{
  "chat_id": 987654321,
  "file_id": "CQACAgIAAxkBAAIBc2Vh",
  "message_id": 12352,
  "status": "success"
}

Show a draft message

Beta. Show text that's still being written in a private chat with your bot, such as an answer an AI step is producing. The draft disappears after 30 seconds: send the finished text with 'Send a message' to keep it.

Inputs

Private chatchat_idnumberRequired
Beta. The private chat with your bot, by its numeric ID (the person's user ID). Drafts show only in private chats.
Draft numberdraft_idnumber
Beta. Any whole number but 0. Use the same number for each update of one draft, so Telegram animates the change. 1 when left blank.Default: 1.
Text so fartexttext
Beta. The text written so far, up to 4096 characters. Leave blank to show 'Thinking…'.
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

draft_idnumber
Beta. The draft's number.
statustext
Beta. success once it's shown.
Example output
{
  "draft_id": 1,
  "status": "success"
}

Show a draft rich message

Beta. Show a rich message that's still being written in a private chat with your bot. It disappears after 30 seconds: send the finished one with 'Send a rich message' to keep it.

Inputs

Private chatchat_idnumberRequired
Beta. The private chat with your bot, by its numeric ID (the person's user ID). Drafts show only in private chats.
Draft numberdraft_idnumber
Beta. Any whole number but 0. Use the same number for each update of one draft, so Telegram animates the change. 1 when left blank.Default: 1.
MessagetexttextRequired
Beta. The message, written in the format chosen below: headings, lists, tables, quotes and links. Up to 32,768 characters.
Written inrich_formattext
Beta. Whether the message is written in HTML or Markdown.One of: html, markdown. Default: html.

Outputs

draft_idnumber
Beta. The draft's number.
statustext
Beta. success once it's shown.
Example output
{
  "draft_id": 1,
  "status": "success"
}

Show a typing status

Beta. Show a status such as 'typing…' or 'sending photo…' at the top of a Telegram chat for up to 5 seconds, while a slower step gets its answer ready. It ends early when the bot sends a message.

Inputs

Chatchat_idtextRequired
Beta. The chat to show it in. Channels don't show statuses.
Statuschat_actiontext
Beta. What the status says the bot is doing. Typing when left blank.One of: typing, upload_photo (Sending a photo), record_video (Recording a video), upload_video (Sending a video), record_voice (Recording a voice message), upload_voice (Sending a voice message), upload_document (Sending a file), choose_sticker (Choosing a sticker), find_location (Finding a location), record_video_note (Recording a video message), upload_video_note (Sending a video message). Default: typing.

Outputs

chat_actiontext
Beta. The status shown.
statustext
Beta. success once it's shown.
Example output
{
  "chat_action": "typing",
  "status": "success"
}

Unpin a chat message

Beta. Unpin a pinned message in a chat. The bot must be an admin allowed to pin messages.

Inputs

Chatchat_idtextRequired
Beta. The chat that has the pinned message.
Message IDmessage_idnumber
Beta. The message to unpin. Leave blank to unpin the most recently pinned one.

Outputs

statustext
Beta. success once it's done.
Example output
{
  "status": "success"
}

On this page