Telegram
The agent replies to customers in a Telegram bot: it receives and sends text and media (photos, documents, voice messages).
Connection modes
- Bot — create a bot via @BotFather in Telegram, get its token and paste it into the connect dialog on the "Integrations" tab. Replies come from the bot.
- Personal number — QR-code connection: the agent replies from your personal Telegram account, can message first (including from the client card in the CRM — Message a client first), and sees the chat history like a regular user. The client's phone reaches the card only if Telegram shows it to your account (a contact or open privacy), and only into an empty “Phone” field.
Client name and phone (personal number)
With a QR-code connection, the client card is filled in from the profile that Telegram shows to your account.
| Card field | Source | Notes |
|---|---|---|
| Name and username | The client's Telegram profile | A name you edited manually is never overwritten |
| Phone | The client's Telegram profile | Only if Telegram shows the number to your account (the client is in your contacts or has open privacy). It is written into an empty “Phone” field; an existing number is not changed |
If the number is hidden, Smokva does not guess it: add the phone to the card manually.
What the agent can do in Telegram
- Receives and sends text, photos, documents, voice messages
- Answers based on the agent's knowledge base
- Can move the conversation through the pipeline if the agent is connected to a CRM
How to prepare the channel and the discussion group
Step by step, for a bot (a personal number does not need this section). Everything is done in Telegram itself, except the last three steps.
-
Connect the bot on the “Integrations” tab: the token from @BotFather goes into the connection dialog.
Paste the token from @BotFather here -
In the channel settings open “Discussion” and link a discussion group (create one if there is none). Without it a post has no comments.
-
Add the bot as an administrator of the channel: “Manage channel” → “Administrators”. To publish posts turn on the “Post messages” right; the other rights are not needed. Faster: use the “Add to channel ↗” button in the “How to connect the bot” block (see below) — but still check in the rights window that “Post messages” is on: Telegram does not always tick this right itself.
-
Add the bot as an administrator of the discussion group: “Manage group” → “Administrators”. Without this Telegram does not pass the group's messages to the bot and comments will not arrive. To delete spam turn on the “Delete messages” right — in the group, not in the channel. Faster: use the “Add to group ↗” button — the “Delete messages” right is already ticked.
-
In Smokva expand the Telegram account and look at the “Bot permissions in channels” block: it should say “Permissions are fine”. If it says something else, do what the line suggests (the list of hints is on the “Request types” page).
-
In the same “Bot permissions in channels” block tick “Reply in this channel” for your channel. When Telegram comments are open in your account, without it Smokva does not treat the channel as yours for replying to comments: this protects you from a stranger who added your bot to their own channel and group. The box is off by default for every channel. A user with the “Configure agents” permission can tick and untick it. If the bot is removed from the channel, the box is cleared automatically — tick it again after adding the bot back.
The Reply in this channel checkbox is the last step -
In the “Request types” block turn on the rows you need and choose an agent. “Comments”, “Publishing” and “Moderation” are off by default (direct messages work right away): Telegram is open, but none of those starts until you turn it on yourself.
Check: write a comment under a channel post from another account (not an administrator) — the agent should reply in the thread under it.
Connection steps in your account
Above the channel list in the “Bot permissions in channels” block Smokva shows a “How to connect the bot” block: three steps, the current one highlighted, with a counter on top (“1 of 3 done”). The steps tick themselves based on what Smokva knows about the bot; after granting rights press “Check rights” to refresh the marks.
| Step | Marked as done when | Button |
|---|---|---|
| 1. Add the bot as a channel administrator | the bot is an administrator of at least one channel | “Add to channel ↗” |
| 2. Add the bot as an administrator of the discussion group | the channel has a discussion group where the bot is an administrator. If the bot is only in the discussion group and Smokva does not see the channel yet, the step is also marked — but once the bot is added to a channel that has no group, the step becomes not done again | “Add to group ↗” |
| 3. Confirm the channel is yours | a channel where comments work has the “Reply in this channel” box ticked | none: the box is in the channel row below |
What the buttons do. “Add to channel ↗” opens Telegram with a channel picker; the dialog offers the bot as an administrator, but on some devices Telegram does not tick the “Post messages” right itself — check it in the rights window. “Add to group ↗” opens a group picker with the “Delete messages” right ticked. You choose the channel or group, check the rights and confirm. The link opens in a new tab.
- A button is shown only on a step that is not done yet, and only if Smokva knows the bot's name (like @coffee_bot). If there are no buttons, do steps 3–4 of the list above by hand.
- If the channel has no discussion group, step 2 shows its name and a hint: open “Discussion” in the channel settings and create a group.
- When all three steps are done, the block collapses into one line “The bot is connected…” with a “Show steps” button.
Comments under channel posts
Subscribers leave comments under the posts of your Telegram channel — in the discussion group linked to the channel. The agent can reply to them publicly, in the discussion under the post (as a reply to the comment), not in a private message: Telegram does not let a bot message a person first.
| What | How it works |
|---|---|
| Turning it on | the "Request types" block of a Telegram account has a "Comments on posts" row. It is off by default: a reply in comments is public, so turn it on deliberately and choose an agent (see the "Request types" page for details). If Smokva says "Mode unavailable: contact support", Telegram comments are not open in your account yet — contact support |
| Warning under the row | if “Comments on posts” is on but the agent cannot reply yet, a yellow hint appears under the row: what is wrong and where to look (the three cases are on the “Request types” page, section “Warning under the “Comments” row”). It blocks nothing: the switch works as usual. While Telegram comments are not open in your account there is no hint |
| What the bot needs | the bot is added as an administrator to both the channel and the discussion group linked to the channel. Without administrator rights in the group (or with the bot's privacy mode not turned off in @BotFather) Telegram does not pass the group's messages to the bot, and comments will not arrive. Comments must be enabled in the channel itself |
| Bot permissions | under the mode rows there is a "Bot permissions in channels" block: one line per channel the bot belongs to, with a hint on what is missing (explained on the "Request types" page, section "Bot permissions in channels (Telegram)") |
| What counts as a comment | a message in the discussion group that is a reply to a channel post or a reply to the bot. Other group messages — participants talking to each other — the agent does not receive |
| The "Reply in this channel" box | shown for every channel in the "Bot permissions in channels" block, off by default. It confirms that the channel is yours and that the agent may reply publicly in its comments on behalf of your brand. A user with the "Configure agents" permission ticks and unticks it; next to it you can see who confirmed and when. It can only be ticked for a channel the bot is currently in. "Check rights" and adding the bot again do not clear it; removing the bot from the channel does. While Telegram comments are not open in your account the box has no effect, but you can tick your channels in advance |
| Where the agent replies | when Telegram comments are open in your account, the agent replies only in confirmed channels — those with the "Reply in this channel" box ticked — and only in the discussion group of such a channel shown in the "Bot permissions in channels" block. Comments from the other groups the bot is added to are not accepted. If two of your bots are in the channel, only one replies: first the one that is also in the discussion group, and if several are, the one that joined the channel first. No line for the channel in the block — remove the bot from the channel and the group and add it again as an administrator |
| If a reply could not be published | the conversation is marked "not delivered" and the reason (the bot was removed, no rights, the comment was deleted) is recorded in the agent event log. There are no automatic retries so that a reply is never published twice. If Telegram asks to wait, the reply is never sent privately and is not duplicated |
Smokva no longer accepts messages from ordinary groups the bot is added to as direct messages: the agent replies only to people who wrote to the bot in a private chat. Previously such a message could be wrongly handled as a direct one, and the reply would go to the author privately.
Publishing posts and deleting comments
For a Telegram bot, Smokva can publish posts to the channel and delete comments in the discussion group — but not on its own: through a proposal and your approval on the "Outbox" tab. The "Publishing" and "Moderation" rows in the "Request types" block are off by default (available from the Plus plan), so turn them on deliberately. How approval works is on the "Proposals and approval" page.
| What | How it works |
|---|---|
| Post | Text of up to 4096 characters or photos and videos with a caption of up to 1024 characters; an album is 2 to 10 files, the caption is shown on the first one. Photos up to 10 MB, videos up to 50 MB, all files of a post together up to 100 MB. Plain text with no buttons under the post — this keeps the standard "Comments" button. Smokva never truncates a text that is too long or splits it into two messages; it asks to shorten it |
| What the bot needs | administrator of the channel with the "Post messages" right. For deleting comments — administrator of the discussion group with the "Delete messages" right. The "Bot permissions in channels" block shows what is missing |
| Schedule | Telegram bots have no delayed publishing: Smokva keeps the schedule and the post goes out at the set time by itself |
| Deleting a comment | Only in the discussion group, irreversible, and not older than 48 hours: Telegram does not allow deleting an older message. There is no "hide" in Telegram. A deletion always waits for your decision |
| Who proposes | The agent proposes posts (from a task in the "AI team" section). The agent cannot propose comment deletion in Telegram yet: the bot receives comments one at a time and cannot request history, and a deletion cannot be approved without seeing the comment text. There is currently no way to create a Telegram comment-deletion proposal — the "Moderation" row is prepared in advance; it makes sense to turn it on once such a path appears |
| What the agent sees | Its own posts and the ones that reached the bot as channel events — "as of" the moment of the request. Posts published before the bot was connected and post edits are invisible to the agent; there are no views or links in the feed |
| If the connection dropped | If the connection to Telegram dropped while a post was being published, it is unknown whether the post went out: Smokva does not publish it again on its own so that there are not two. Check the channel and propose the post again |
| Limits | Telegram accepts no more than one message per second to a chat and 20 per minute to a group; the excess waits and goes out later |
Advertising, "Created with AI" labels and tagged links work as on other platforms: a post marked "advertising" without a marking token (erid) is not published — see "Marks in posts".
What Telegram does not allow through a bot and Smokva does not try: stories, polls, reactions, reading old channel posts. A personal Telegram number does not support publishing or moderation.
What Telegram can and cannot do in Smokva
| Can | Cannot (yet or at all) |
|---|---|
| Reply to direct messages to the bot | Write to a person first via a bot: Telegram does not let a bot start a conversation (a personal number can — see “Connection modes”) |
| Reply publicly to comments under channel posts, in the thread | Reply to a commenter in a private message |
| Publish text, photos, video and albums to the channel — after your approval, at the chosen time | Publish through a personal number; stories, polls, reactions |
| Delete a comment in the discussion group (within 48 hours, after your approval) | “Hide” a comment — Telegram has no such feature |
| Show the agent the posts the bot learned about from channel events | Read old posts and channel history — Bot API does not provide it |
Not ready yet: the agent does not propose deleting a Telegram comment on its own — the path “comment from a conversation → a proposal with its text” has not been built, so the “Moderation” row will not receive anything yet. If the “Bot permissions in channels” block is fine but comments do not arrive, check steps 2–4 and 6 above and the “If Telegram comments do not arrive” section of the “Request types” page.
Disconnecting
Disconnect the channel any time on the same "Integrations" tab — this frees the bot/number to be connected to another agent.