Telegram API for developers

The Telegram API,without building a bot

Post to your Telegram channel or group with one REST call: photos, videos, albums, polls and link buttons. No bot token, no BotFather, no webhook server. Read reactions per emoji and poll votes.
Webhooksyour-app.com/hooks
post.scheduledpost 1024just now200
post.publishedpost 10192 h ago200
post.approvedpost 10193 h ago200
POST/v1/posts/createapplication/json
01{
02 "content": "New: Best times to post",
03 "accounts": ["telegram"],
04 "media_urls": ["https://cdn.example.com/best-times.png"],
05 "telegram": {
06 "buttons": [
07 {
08 "text": "Read the docs",
09 "url": "https://docs.omnisocials.com/api/analytics"
10 }
11 ]
12 },
13 "schedule_at": "2026-10-22T18:00:00Z"
14}
Sending201 Created412 ms
Send
15{
16 "data": {
17 "id": "1024",
18 "status": "scheduled",
19 "app_url": "https://app.omnisocials.com/create-post/1024"
20 }
21}
A request schedules a Telegram post with a photo and a link button for Thu at 18:00; it appears in the OmniSocials calendar and the webhook post.scheduled fires.
Your coding agent runs the same calls through the CLI

Skip building a Telegram bot

Telegram’s Bot API is free, but the bot is yours to build: create it with BotFather, run a webhook server or a long-poll loop, store every chat id, check the bot’s admin rights, upload the media, split captions over 1,024 characters and retry on 429. OmniSocials runs that bot for you.

Every Telegram format, one request

Text, a photo, a video, a GIF, albums of up to 10 and native polls share one request shape. OmniSocials checks the post against Telegram’s limits and counts characters the way Telegram does before anything is sent.
Text, photos and video
Text up to 4,096 characters, with a link preview. One photo, one MP4 or MOV video up to 50 MB, or one GIF, with a caption.
contentmedia_urls
Albums
2 to 10 photos and videos in one message, mixed as you like. A GIF goes on its own.
media_urls
Native polls
The post text is the question. 2 to 12 answers, one or several per person, open until you close it or up to 30 days. Always anonymous.
telegram.poll

Every Telegram option in one object

Send it silently, pin it, protect it from forwarding, blur the media, put the text above it, turn off the link preview or add a first comment. The telegram object holds them all, and the app shows the same switches.
Message options
silent, protect_content, spoiler, caption_above_media and link_preview, the switches Telegram itself has. Each takes true, false or null, and the link preview stays on unless you send false.
telegram.silenttelegram.protect_content
Pin and first comment
pin pins the post once it is out. In a group, make the bot an admin with Pin messages first; without the right the post still goes out and result.pin_error reads “no_right”. first_comment is a silent reply under the post.
telegram.pintelegram.first_comment
Link buttons
Up to 3 buttons, one per row, each a label of 1 to 64 characters and a link that starts with https://, http:// or tg://. Telegram shows none under an album or a poll.
telegram.buttons
One request with the telegram object schedules a Telegram photo that is sent silently, protected from forwarding, pinned and followed by a first comment; the OmniSocials composer shows the same options switched on.

Long text under media, handled

Telegram allows 1,024 characters under a photo or video. Send up to 4,096 and OmniSocials sends the media first and the full text as a reply under it, buttons included. The post then says where every message landed.
Media first, then the text
Over the 1,024 characters a caption allows, the picture or album goes first and the full text follows as a silent reply under it. Your link buttons move to that reply.
contentresult.text_message_id
Counted like Telegram
Up to 4,096 characters, counted in UTF-16 the way Telegram counts, so most emoji count as 2. A longer text fails in your request, with the count, before anything is sent.
Where it landed
telegram.result lists the message ids, the reply, the pin and both links. published_urls.telegram is the t.me link of a public chat, else the t.me/c link members can open.
telegram.resultpublished_urls.telegram
One request publishes a picture with a 1,070-character text to a Telegram channel: the picture goes first, the text follows as a reply under it with the link button, reactions come in per emoji, and GET /v1/posts/1019 returns the message ids, the reply's id and the t.me links.

Connect in Telegram, post from code

Open the OmniSocials bot from Channels, press Start and pick your channel or group in Telegram’s own chat picker. OmniSocials checks that you are an admin of that chat. Then create an API key, and your code posts there.
Our bot, your chat
No bot token and no BotFather. In a channel Telegram adds the bot as an admin that can post; in a group it joins as a member.
Knows when the bot is gone
When someone removes the bot or takes away its right to post, the account reads needs_reconnect with the reason, and you get one email.
needs_reconnectreauth_reason
What the chat is
The accounts call returns the chat type, its id, the subscribers or members and its t.me link. Each workspace connects one chat.
GET /v1/accountsplatform_details

“The MCP is the real game changer for me. It makes the whole workflow feel much faster and less messy.”

Ansub Khan
Founder of Supafast

Read what Telegram gives bots

Reactions per emoji, poll votes and your subscribers. Telegram gives bots no view counts, so views read N/A in the app and the API leaves them out.
Reactions per emoji
likes is the total of every reaction, reactions the count per emoji. Telegram pushes them as they come in. In a group, the bot must be an admin to get them.
/analytics/posts/:idreactions
Poll votes
The votes per answer and the total, kept up to date as people vote.
metrics.poll
Subscribers
The subscribers of a channel or the members of a group, checked once a day, as the account’s followers.
/analytics/accountsfollowers
Under the hood

Built for production

Signed webhooks, automatic retries, SDKs in 8 languages and a key per workspace. Create a key and send your first request in minutes.
Webhooks
Signed events for every post
Retries
Failed posts retry on their own
SDKs
One request shape in 8 languages
API keys
One key per workspace
Agents
Your coding agent posts too

Telegram’s rules, in one place

OmniSocials checks every post against them before it reaches Telegram, so a post that breaks one fails in your request with the reason, not at publish time.
Text4,096 characters, an emoji counts 2
Caption1,024 under media, the rest as a reply
Album2 to 10 photos and videos, no GIFs
PhotosUp to 40 MB, re-encoded above 10 MB
Video and GIFMP4 or MOV up to 50 MB, one GIF
Poll2 to 12 answers of up to 100 characters
Poll question300 characters, open up to 30 days
ButtonsUp to 3, labels of 1 to 64 characters
First comment4,096 characters, sent silently
ChatsOne channel or group per workspace
RemovalFrom Telegram within 48 hours
Rate limit100 requests a minute per API key

Your first Telegram post in three steps

About five minutes from sign-up to a scheduled post in your channel. Then hand the key to your coding agent.
Create an API key
Start your trial, open Settings, API and create a key. It is shown once.
Settings › API
Step 1
Connect your chat
Open Channels, pick Telegram and press Start in the OmniSocials bot. Choose your channel or group, then list it from your code.
GET /v1/accounts
Step 2
Send your first post
Post now with create-and-publish, or add schedule_at to plan it. Add the telegram object for buttons, a poll or a pin.
POST /v1/posts/create
Step 3

Frequently
Asked Questions

Robert Ligthart
Robert LigthartFounder of OmniSocials
Ask me a question

Robert Ligthart
Still have a question?Ask Robert, the founder
Ask

Ship your Telegram
integration this week.

From $10 per seat a month, API included. 14-day free trial.
https://docs.omnisocials.com/platforms/telegram