Skip to content
Peal
Esc
↑↓navigate↵open⌘Jpreview
On this page

Telegram

Connect a Telegram channel or group to Peal with your own bot, what a post there may hold, and the options it takes.

You connect a Telegram channel or group with a bot you make yourself, and Peal posts as that bot. It posts in channels and groups only, never in a private chat with a person.

At a glance

Here’s what a Telegram post can hold:

Text 4,096 characters, as Telegram counts them
Text with media 1,024 characters, as Telegram counts them
Images and videos Up to 10
Their size together 200 MiB together, in one part
Parts A thread, up to 24 more parts
Alt text Not shown

What each file type must be is in Images and videos. Telegram takes JPEG and PNG photos, MP4 videos, and a GIF, which has to go alone. Each Telegram chat counts as one account on your plan.

Connect a chat

Make a bot

In Telegram, open @BotFather, Telegram’s own bot for making bots. Send /newbot and follow its steps. It answers with the bot’s token.

Add the bot to the chat

In a channel, add the bot as an administrator who can post messages. In a group, add it as a member.

Paste the token in Peal

On Channels, under Telegram, paste the token into Bot token and type the chat in Chat. Then click Connect Telegram. Peal checks that the bot can post there and keeps the token encrypted, so you won’t see it again.

In Chat, type the chat’s public name, such as @name, or its id. A channel’s or a supergroup’s id starts with -100.

To cut Peal off, revoke the bot’s token with @BotFather, or remove the bot from the chat. Peal then marks the channel to reconnect.

When a group becomes a supergroup, Telegram gives it a new id, and posts to it fail with chatMigrated. Connect the chat again as a new channel, then disconnect the old one. The old channel counts on your plan until you do.

What a post becomes

Peal sends plain text, with no bold, italics or other formatting. Telegram still makes links, @names, hashtags and /commands clickable. An @name in a group notifies that person, and Peal can’t turn that off.

On its own, the text can be up to 4,096 characters, as Telegram counts them. With images or videos, it becomes their caption and can be up to 1,024 characters, as Telegram counts them. Peal checks the length when you schedule the post.

Several files go out as one album, with the text as the first file’s caption. The parts of a thread are replies, each to the part before it.

Options

None of these is required, and each one goes with every part. API name is the option’s name in the API:

Option API name Values Left out
Show a preview of its first link linkPreview Yes or no Yes
Send without sound silent Yes or no No

A part with images or videos never shows a link preview, whatever Show a preview of its first link says.

Edit and delete

Peal can edit a post’s text, or its caption, and delete the post with every message of an album (see After a post is published). Telegram deletes a message only within 48 hours of sending it. After that, Peal doesn’t ask Telegram and tells you so (deletionWindowPassed), and you delete the post in Telegram yourself.

When an answer is lost

Telegram has no key that lets Peal send a message again safely, and a bot can’t read a chat’s messages. So when Telegram takes a post and its answer never reaches Peal, the post shows To check. Look at the chat, then confirm the post or send it again from its page.

Peal never sends it again on its own, and it doesn’t send the parts that come after it.

What Peal doesn’t do on Telegram

Peal doesn’t read anything back from Telegram, so there are no counts, replies or inbox for it. It doesn’t post in a topic of a forum group, and it sends no formatting, buttons or documents.

Was this page helpful?