Telegram
Connect a Telegram channel, group, or chat, and Publishedt posts each new item from your feed there as a bot that you own. You make the bot, add it to the chat, and paste its token into Publishedt.
Connect
- In Telegram, message @BotFather, send
/newbotand answer its questions. Copy the token it gives you. - Add the bot to the chat you want it to post to:
- Channel: add the bot as an administrator, with Post messages on.
- Group: add the bot as a member or an administrator. A restricted member works too, as long as it can still send messages.
- Find the chat:
- A channel with a public name: use its @username, such as
@mychannel. - Any other chat: use its numeric ID, such as
-1001234567890. To find it:- Get a message to the bot:
- A one-to-one chat: message the bot once, so it can reply.
- A group: mention the bot or send
/start@<botname>. In a group, a bot only gets commands and mentions unless its privacy mode is off. - A private channel: post a message after you've added the bot. getUpdates shows it as
channel_post.
- Open
https://api.telegram.org/bot<token>/getUpdateswith your token, in a private window so the token isn't saved in your browser's history. Don't share that address. - Read
chat, thenid. If the result is empty, send the message again and reload.
- Get a message to the bot:
- A channel with a public name: use its @username, such as
- In Publishedt, go to Destinations, then Connect a destination, and choose Telegram.
- Paste the token under Bot token and the chat under Chat ID, then choose Connect Telegram.
- On the destination's page, choose Send a test post to check that it works.
If it worked, Publishedt shows Test post sent, and for a public channel or group, its View it link opens the post. A private chat has no public address, so there's no link. The post reads "This is a test post from Publishedt. If you can read it, posts from your feeds will arrive here." Activity lists it as Test post, with the status Posted, and the destination shows as Working.
If the test post fails, the message gives the reason, and What each failure means covers the fix. If it's still waiting after a minute, check Activity again soon.
Next, route a feed to it, then set the text of each post with its template.
Keep the token private. Anyone who has it can post as the bot. Publishedt stores it encrypted and never shows it again.
To use a different bot or chat, choose Change bot token on the destination's page. Leave a field empty to keep what's already saved.
What's posted
- Text: the post is sent as plain text. Telegram shows a
<or*in a title as a plain character, never as formatting. - An image: the item's first image is sent as a photo, with the post as its caption. Any other images are left off, and Activity notes it. If Telegram rejects the photo, the post is sent as text instead.
- A link preview: Telegram builds a card from the post's link, with a large image when the page has one. A post sent with a photo has no link preview, and neither does a post without a link.
Options
A Telegram route has no options beyond its template and its posts per hour.
Limits
- Characters: 4,096, or 1,024 when the post is a photo's caption. Telegram does the counting, so an emoji may count as two.
- A post over the limit gets cut to fit when it's sent, but its link remains intact. Activity notes the cut, and the template editor shows a warning before it happens.
- Posts per day: your plan sets a daily cap for each destination. See Pricing.
Posted link
Activity links to a post on Telegram only when it went to a public channel or group, whose address looks like t.me/<username>/<id>. A private chat has no public address, so its posts don't get a Posted link.
A group that became a supergroup
When a group becomes a supergroup, Telegram gives it a new ID. Publishedt follows the move once and saves the new ID, so posting continues without a break.
Posting twice
Telegram doesn't take an idempotency key, so Publishedt never resends a post that might have been posted already. If a post never gets a response, Activity shows it as Not confirmed. Check the chat, and choose Post again only if the post isn't there.
When the bot loses access
If the destination shows Needs attention, fix the bot first. Add it back to the chat, or get a new token from @BotFather if the old one was revoked. Then choose Change bot token on the destination's page. Paste a new token or chat and choose Save changes, or leave both fields empty and choose Check again. Its posts wait until you fix it, and a post that waits more than 3 days is skipped rather than posted late.
This happens when the bot's token is revoked or the bot is removed from the chat. Publishedt checks each Telegram destination once a day, so it usually notices before a post fails.
What each failure means
| Activity shows | What it means |
|---|---|
| Telegram no longer accepts this bot's token. Change the bot token to keep posting. | Telegram no longer accepts the bot's token, often because it was revoked. Posts wait. Paste the new token with Change bot token. |
| The bot was removed from the chat, or it can't post there. Add it back to the chat, as an admin that can post if the chat is a channel, then choose Change bot token and Check again. To use another chat, enter its ID there and choose Save changes. | The bot was removed from the chat, or lost the right to post there. Posts wait. Add the bot back to the chat (in a channel, as an admin that can post messages), then choose Change bot token and Check again. To use another chat, enter its ID there and choose Save changes. |
| Telegram can't find this chat. Change the chat ID to keep posting. | Telegram can't find the chat: it was deleted, or the bot can't see it. Posts wait. Check the chat ID, then change it. |
| Publishedt couldn't read this destination's saved bot token and chat. Choose Change bot token and enter the bot token and the chat ID again to keep posting. | The saved bot token or chat ID can't be read. Posts wait. Choose Change bot token and enter the bot token and the chat ID again. |
| Telegram rejected the post. | The destination rejected this post and gave a reason. It isn't retried. Fix what it names, then choose Try again in Activity. |
| Telegram had an error. | The destination kept responding with an error. Publishedt retried, waiting longer each time, then stopped. Choose Try again in Activity. |
| Telegram took too long to respond. | Each try timed out before the post was sent. Nothing posted. Choose Try again in Activity. |
| Publishedt couldn't reach Telegram. | Publishedt couldn't connect on any try. Nothing posted. Choose Try again in Activity. |
| Publishedt couldn't confirm whether this posted. Check Telegram before posting it again. | The post was sent, but no response came, so Publishedt can't tell whether it was posted. Check the destination. If the post isn't there, post it again from Activity. |
| Trimmed to fit the destination's n-character limit. | A note, not a failure: the post was cut to fit, keeping its link whole. Shorten the template to avoid it. |
| The link was too long to fit and was left off. | A note, not a failure: the link alone was too long to fit, so the post went without it. |
| Posted without n image(s) that Telegram rejected. | A note, not a failure: the post was sent without some images. The table below shows why for each. |
Images
| Why an image was left off | What it means |
|---|---|
| Publishedt couldn't download an image from the feed's site. | The image's address didn't respond. |
| An image's address isn't a public website. | The image is on a private network, which Publishedt never connects to. |
| A linked file isn't a picture Publishedt can post. | The file at the image's address isn't an image. |
| An image is in a format Publishedt can't post, such as HEIC. | The image is in a format that can't be posted, such as HEIC or an animated AVIF. Use JPEG, PNG, GIF, WebP, or AVIF. |
| An image is too large to process. | The image is over 10 MB, or has too many pixels to open. |
| An image couldn't be made small enough for Telegram. | The image couldn't be made small enough for the destination's size limit. |
| An image contains location or other hidden data Publishedt can't remove. | The image contains location or other hidden data that couldn't be removed, so it was left off to keep it private. |
| Telegram rejected an image. | The destination rejected the image. |
For failures any destination can run into, see Getting started.
Something wrong on this page? Contact support@publishedt.app.