Telegram support
Telegram support
Hey!
Postproxy now supports Telegram.
This one works a little differently from most other platforms. Telegram does not offer a normal “connect your account and post” flow for channels, so we went with bring your own bot.
You create a bot in Telegram, connect it to Postproxy once, and publish to any channel where that bot has admin access. Your bot, your channels, your branding. No random third-party bot quietly sitting in the admin list like it pays rent.
Once the bot is connected, Postproxy keeps track of the channels it can publish to. Add the bot as an admin, fetch placements, pick the chat_id, and send the post.
Example:
curl -X POST "https://api.postproxy.dev/api/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post": {
"body": "<b>Latest update</b> — check it out"
},
"profiles": ["telegram"],
"platforms": {
"telegram": {
"chat_id": "-1001234567890",
"parse_mode": "HTML",
"disable_link_preview": true
}
}
}'
A few useful details are already covered:
-
publish plain text or use
HTML/MarkdownV2formatting -
send posts silently with
disable_notification -
turn link previews off when they get in the way
-
attach up to 10 images or videos as a Telegram media group
-
publish to different channels from the same bot by changing
chat_idper post
Telegram fits nicely into Postproxy’s usual model: one API surface, platform-specific details kept in one place, fewer reasons to maintain a small private museum of edge cases.
Platform overview:
https://postproxy.dev/platforms/telegram/
Full parameter reference:
https://postproxy.dev/reference/platform-parameters/#telegram
Cheers,
Dmitry