Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Telegram

connector.telegram · connector.telegram_trigger · communication

Send messages and files as a Telegram bot, manage chats and messages, answer callback queries, download files, and start workflows from bot updates.

Vendor API documentation: https://core.telegram.org/bots/api

Authentication

MethodCredential kindAuth kindFieldsTest request
Bot tokentelegram/bot_tokenapi_keytoken (secret), base_urlyes

Actions

Node type connector.telegram. Choose a resource and an operation; each operation has its own parameters.

Message

OperationIDEffectPaginatedCassette tests
Send a text messagemessage.send_textwrites4
Send a photomessage.send_photowrites2
Send a documentmessage.send_documentwrites2
Send an audio filemessage.send_audiowrites1
Send a videomessage.send_videowrites1
Send an animation (GIF or silent video)message.send_animationwrites1
Send a voice messagemessage.send_voicewrites1
Send a stickermessage.send_stickerwrites1
Send an albummessage.send_media_groupwrites1
Send a locationmessage.send_locationwrites1
Edit a message textmessage.edit_textwrites2
Delete a messagemessage.deletewrites1
Forward a messagemessage.forwardwrites1
Copy a messagemessage.copywrites1
Pin a messagemessage.pinwrites1
Unpin a messagemessage.unpinwrites1

Send a text message

Operation message.send_text.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
textstringyes1 to 4096 characters after entity parsing.
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
disable_web_page_previewbooleanfalse
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send a photo

Operation message.send_photo.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
captionstring
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
has_spoilerbooleanfalse
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send a document

Operation message.send_document.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
captionstring
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
disable_content_type_detectionbooleanfalse
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send an audio file

Operation message.send_audio.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
captionstring
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
durationnumber
performerstring
titlestring
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send a video

Operation message.send_video.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
captionstring
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
durationnumber
widthnumber
heightnumber
supports_streamingbooleanfalse
has_spoilerbooleanfalse
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send an animation (GIF or silent video)

Operation message.send_animation.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
captionstring
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
durationnumber
widthnumber
heightnumber
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send a voice message

Operation message.send_voice.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
captionstring
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
durationnumber
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send a sticker

Operation message.send_sticker.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesChat ID, or @username of a public channel or group.
binary_databooleanfalseUpload the file from a binary property instead of sending a file_id or URL.
binary_propertybinary_property"data"binary_data = true
filestringbinary_data = falsefile_id of a file already on Telegram’s servers, or an HTTP URL for Telegram to fetch.
emojistringEmoji associated with a newly uploaded sticker.
message_thread_idnumberForum topic to post in.
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber
reply_markupjsonInline keyboard, custom reply keyboard, keyboard removal or force-reply object.

Send an album

Operation message.send_media_group. Sends 2 to 10 photos, videos, documents or audio files as one album, referenced by file_id or URL.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
mediajsonyesArray of InputMedia objects, for example [{“type”: “photo”, “media”: “https://…”, “caption”: “…”}].
message_thread_idnumber
disable_notificationbooleanfalse
protect_contentbooleanfalse
reply_to_message_idnumber

Send a location

Operation message.send_location.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
latitudenumberyes
longitudenumberyes
horizontal_accuracynumberRadius of uncertainty in meters (0-1500).
live_periodnumberSeconds the location stays live (60-86400).
message_thread_idnumber
disable_notificationbooleanfalse
reply_to_message_idnumber
reply_markupjson

Edit a message text

Operation message.edit_text.

NameTypeDefaultRequiredShown whenDescription
message_typeoptions"message"One of message, inline_message.
chat_idstringmessage_type = message
message_idnumbermessage_type = message
inline_message_idstringmessage_type = inline_message
textstringyes
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
disable_web_page_previewbooleanfalse
reply_markupjsonInline keyboard to show under the message.

Delete a message

Operation message.delete.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
message_idnumberyes

Forward a message

Operation message.forward.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyesTarget chat.
from_chat_idstringyesChat the message is in.
message_idnumberyes
message_thread_idnumber
disable_notificationbooleanfalse
protect_contentbooleanfalse

Copy a message

Operation message.copy. Sends a copy of a message without the link to the original.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
from_chat_idstringyes
message_idnumberyes
captionstringNew caption for media (keeps the original when empty).
parse_modeoptionsOne of HTML, MarkdownV2, Markdown.
message_thread_idnumber
disable_notificationbooleanfalse
reply_markupjson

Pin a message

Operation message.pin.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
message_idnumberyes
disable_notificationbooleanfalse

Unpin a message

Operation message.unpin.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
message_idnumberLeave empty to unpin the most recent pinned message.

Chat

OperationIDEffectPaginatedCassette tests
Get a chatchat.getreads1
List chat administratorschat.get_administratorsreads1
Get a chat memberchat.get_memberreads1
Count chat memberschat.get_member_countreads1
Leave a chatchat.leavewrites1
Set the chat titlechat.set_titlewrites1
Set the chat descriptionchat.set_descriptionwrites1
Show a chat actionchat.send_actionwrites1

Get a chat

Operation chat.get.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes

List chat administrators

Operation chat.get_administrators.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes

Get a chat member

Operation chat.get_member.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
user_idnumberyes

Count chat members

Operation chat.get_member_count.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes

Leave a chat

Operation chat.leave.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes

Set the chat title

Operation chat.set_title.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
titlestringyes

Set the chat description

Operation chat.set_description.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
descriptionstring0 to 255 characters; empty removes the description.

Show a chat action

Operation chat.send_action. Shows a status such as “typing…” for up to 5 seconds.

NameTypeDefaultRequiredShown whenDescription
chat_idstringyes
actionoptions"typing"yesOne of typing, upload_photo, record_video, upload_video, record_voice, upload_voice, upload_document, choose_sticker, find_location, record_video_note, upload_video_note.
message_thread_idnumber

Callback

OperationIDEffectPaginatedCassette tests
Answer a callback querycallback.answer_querywrites1
Answer an inline querycallback.answer_inline_querywrites1

Answer a callback query

Operation callback.answer_query. Acknowledges an inline keyboard button press, optionally showing a notification or alert.

NameTypeDefaultRequiredShown whenDescription
query_idstringyescallback_query.id from the update.
textstringNotification text (0-200 characters).
show_alertbooleanfalse
urlstringURL to open (game or t.me deep link).
cache_timenumber

Answer an inline query

Operation callback.answer_inline_query.

NameTypeDefaultRequiredShown whenDescription
query_idstringyesinline_query.id from the update.
resultsjsonyesArray of InlineQueryResult objects (at most 50).
cache_timenumber
is_personalbooleanfalse
next_offsetstring

File

OperationIDEffectPaginatedCassette tests
Get file detailsfile.getreads1
Download a filefile.downloadreads1

Get file details

Operation file.get. Returns the file path and size; the download link is valid for at least one hour.

NameTypeDefaultRequiredShown whenDescription
file_idstringyes

Download a file

Operation file.download. Downloads a file (up to 20 MB on the public Bot API server) into a binary property.

NameTypeDefaultRequiredShown whenDescription
file_idstringyes
binary_propertystring"data"

Bot

OperationIDEffectPaginatedCassette tests
Get bot detailsbot.get_mereads1
Get webhook statusbot.get_webhook_inforeads1

Get bot details

Operation bot.get_me.

This node has no parameters.

Get webhook status

Operation bot.get_webhook_info. Shows the registered webhook URL, pending updates and the last delivery error.

This node has no parameters.

Triggers

Node type connector.telegram_trigger.

TriggerIDKindDeduplication keySignatureWebhook registrationCassette tests
Bot updateupdateswebhooktokenautomatic0
Bot update (polling)new_updatepoll{{ item.update_id }}0

Trigger: Bot update

Registers the node’s webhook URL with Telegram (setWebhook) when the workflow is activated and removes it on deactivation. Each request is checked against a secret token sent in X-Telegram-Bot-Api-Secret-Token. A bot can have only one webhook, so only one active workflow per bot can use this trigger.

NameTypeDefaultRequiredShown whenDescription
updatesmulti_options["*"]Update types to receive. “All” asks for every type Telegram sends by default. 16 values, listed below.
chat_idsstringComma-separated chat IDs to accept. Leave empty for all chats.
user_idsstringComma-separated sender user IDs to accept. Leave empty for everyone.
drop_pending_updatesbooleanfalseDiscard updates that queued up while no webhook was registered.

Values of updates

ValueLabel
*All
messageMessage
edited_messageEdited message
channel_postChannel post
edited_channel_postEdited channel post
inline_queryInline query
chosen_inline_resultChosen inline result
callback_queryCallback query
shipping_queryShipping query
pre_checkout_queryPre-checkout query
pollPoll
poll_answerPoll answer
my_chat_memberBot membership changed
chat_memberChat member changed
chat_join_requestJoin request
message_reactionReaction changed

Trigger: Bot update (polling)

Fetches new updates with getUpdates on the poll schedule; no public URL needed. Telegram refuses getUpdates while a webhook is registered for the bot.

NameTypeDefaultRequiredShown whenDescription
updatesmulti_options["*"]14 values, listed below.

Values of updates

ValueLabel
*
message
edited_message
channel_post
edited_channel_post
inline_query
chosen_inline_result
callback_query
poll
poll_answer
my_chat_member
chat_member
chat_join_request
message_reaction

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.telegram>=1 <2unverified
n8n-nodes-base.telegramTrigger>=1 <2unverified

Provenance

Written from the vendor’s documentation: