Post to Telegram from one API
Connect a bot token and post messages, photos, videos and albums to channels and groups where the bot is an admin. Send silently or without link previews.
What works on Telegram
- Publish now
- Schedule and queue
- Post analytics
- Comments in the inbox
- Direct messages
- First comment
- Public data scraping
- Video downloads
What you can publish
- Text length
- 4,096 characters
- Images per post
- Up to 10
- Videos per post
- Up to 10
- Images and videos together
- Allowed
- Video file size
- Up to 50 MB
- Image file size
- Up to 10 MB
- Media
- Optional
- Long text
- Sent as one post
Preflight checks these limits for every target before publishing and returns clear errors and warnings.
How you connect
Create a bot with BotFather, add it as an admin of your channel or group, then paste the bot token and the chat.
Options for Telegram
Pass these in platformSpecificData on the Telegram entry of a post. Everything else, like text, media, first comment and scheduling, works the same on every network.
disableNotificationdisableLinkPreview
Example request
curl -X POST "https://postkea.com/api/v1/posts" \
-H "Authorization: Bearer $POSTKEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Our spring pottery workshop opens for booking today.",
"platforms": [
{
"accountId": "acc_tele_8f2k",
"platformSpecificData": {
"disableNotification": true
}
}
],
"mediaItems": [
{
"type": "image",
"url": "https://cdn.example.com/glazes.jpg",
"altText": "Six glazed mugs on a wooden shelf"
}
],
"scheduledFor": "2026-11-03T09:00",
"timezone": "Europe/Berlin"
}'const res = await fetch("https://postkea.com/api/v1/posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.POSTKEA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
content: "Our spring pottery workshop opens for booking today.",
platforms: [
{
accountId: "acc_tele_8f2k",
platformSpecificData: {
disableNotification: true,
},
},
],
mediaItems: [
{
type: "image",
url: "https://cdn.example.com/glazes.jpg",
altText: "Six glazed mugs on a wooden shelf",
},
],
scheduledFor: "2026-11-03T09:00",
timezone: "Europe/Berlin",
}),
});
const { data } = await res.json();
console.log(data);import os, requests
r = requests.post(
"https://postkea.com/api/v1/posts",
headers={"Authorization": f"Bearer {os.environ['POSTKEA_API_KEY']}"},
json={
"content": "Our spring pottery workshop opens for booking today.",
"platforms": [
{
"accountId": "acc_tele_8f2k",
"platformSpecificData": {
"disableNotification": True,
},
},
],
"mediaItems": [
{
"type": "image",
"url": "https://cdn.example.com/glazes.jpg",
"altText": "Six glazed mugs on a wooden shelf",
},
],
"scheduledFor": "2026-11-03T09:00",
"timezone": "Europe/Berlin",
},
)
data = r.json()["data"]
print(data)Read public Telegram data
3 operations for public Telegram content. Each returns clean JSON and costs credits only when it succeeds.
Telegram questions
Can I schedule Telegram posts with the API?
Yes. Send a post with scheduledFor and a timezone, or addToQueue to use the next free slot of the account. You can also schedule from the dashboard calendar or let an AI agent do it through the MCP server.
What are the Telegram limits?
Posts can have up to 4,096 characters. Postkea checks text length, media count, file size, duration and aspect ratio before publishing, so you get a clear error instead of a failed post.
What happens if a Telegram post fails?
The post gets a result per network. Failed networks cost no credits, the error says what went wrong, and you can retry them with one call to POST /v1/posts/{id}/retry or one click in the dashboard.
Can I get data from public Telegram posts?
Yes. Use the Telegram scraping operations for details, comments, profiles and more, or POST /v1/scrape/auto with any Telegram link.
Other platforms
Connect your first channels
Free includes 3 channels and 200 credits a month.