Skip to main content

Telegram

FirstReply connects your own Telegram bot. Messages people send to the bot arrive in the inbox. If the bot also administers a Telegram channel, FirstReply publishes posts to it and brings in the comments from its discussion group and the direct messages to the Telegram channel.

What you need​

  • A bot of your own, created with @BotFather in Telegram, and its token. Create a new bot for FirstReply. A bot can deliver its messages to one place only, so a bot that is already used by another tool stops receiving its messages there.
  • To publish: a Telegram channel where the bot is an administrator with the right to post messages.
  • For comments: a discussion group linked to the Telegram channel, with the bot as an administrator of that group too.
  • For direct messages to the Telegram channel: the bot's right to manage direct messages.

Only the bot token is required. A bot without a Telegram channel still receives the messages people send it.

Connecting​

  1. Open Settings, then Channels, and choose Create Channel.
  2. Pick Telegram and give the channel a name under Channel Name.
  3. Paste the token from @BotFather into Bot token. It is stored encrypted.
  4. Optional: fill in Telegram channel with its @name, its t.me link or its numeric id (for example -1001234567890). A private Telegram channel has no @name, so enter its id.
  5. Use Test Connection to see what the bot may do, then Create Channel.

The new channel page for Telegram with the fields for the channel name, the bot token and the Telegram channel

FirstReply checks the token and that the bot is an administrator of the Telegram channel who may post. The connection test also tells you when the discussion group or the right for direct messages is missing.

To publish, open the channel afterwards and switch on Publish posts to this channel in the Publishing section. The channel then counts against the publishing channels of your plan.

One bot belongs to one FirstReply channel. You can later replace the token with a new token of the same bot, or change the Telegram channel. Emptying the Telegram channel field disconnects it and turns publishing off.

What arrives in the inbox​

Telegram pushes everything to FirstReply as it happens. Nothing is polled.

  • Messages to the bot. Each person gets one open conversation. The /start that Telegram sends when someone opens the bot is not stored.
  • Direct messages to the Telegram channel, when the bot may manage them. They are answered into the same chat with that person.
  • Comments. A comment on a post of the Telegram channel, and the replies to it, become one comment thread per top-level comment. Other talk in the discussion group stays out.

A Telegram conversation in the FirstReply inbox with the reply box

What is specific to Telegram:

  • Replies can have up to 4,096 characters and are sent as plain text.
  • A reply in a comment thread is posted in the discussion group by the bot, as an answer to the thread's first comment.
  • Photos, videos, voice messages and files are not imported. The message shows a marker such as [Photo] or [File: name], plus the caption if there is one.
  • Edited comments are updated. Edited private messages are not, and Telegram does not report deleted messages.
  • Nothing from before the connection is imported.
  • Moderation offers Like (the bot reacts with a thumbs up) and Delete (the bot needs the right to delete messages in the discussion group). There is no hiding and no private reply to a comment.

How comment threads, the comment mode, AI replies and moderation work in general is described in Comments.

Publishing​

Posts go to the connected Telegram channel as the bot.

The post composer with a Telegram post and its preview

PostLimit
Text only4,096 characters
Text with photos or videos1,024 characters (it becomes the caption)
Media per postup to 10 photos and videos, mixed as an album
PhotosJPEG, PNG or WebP, up to 10 MB each
VideosMP4, up to 50 MB each

A post needs a text or at least one file. The text is published plain, without formatting. Buttons and polls are not supported.

The Telegram tab of the composer has one setting, Send without notification: subscribers receive the post without a sound.

The composer, scheduling, approval and the calendar are described in Publishing.

Metrics​

FirstReply shows the number of subscribers of the Telegram channel. Telegram gives bots no views, reactions or comment counts of a post, so posts on Telegram have no metrics of their own.

Good to know​

  • The token does not expire. There is no regular reconnect. If you revoke the token in @BotFather, enter the new one in the channel settings.
  • A post without confirmation is not repeated. If Telegram does not answer when a post or a reply is sent, FirstReply marks it as uncertain instead of sending it again, since it may have gone out. Check Telegram before you try again.

Troubleshooting​

The bot token is not accepted. Copy the current token from @BotFather. A token that was revoked there no longer works. A token of another bot is refused on an existing channel: add a new channel for that bot.

Telegram does not show the Telegram channel to the bot. Add the bot as an administrator of the Telegram channel with the right to post messages, then save again.

"Is not a Telegram channel". You entered the discussion group. Enter the Telegram channel itself. FirstReply finds its group through it.

Messages stopped arriving. The bot was probably connected to another tool, which redirected its messages. Enter the bot token again in the channel settings to point the bot back to FirstReply.

A reply was not delivered. If the person has blocked the bot, Telegram delivers nothing to them. The reason is shown on the message.