Running a Telegram bot as a Zammad channel
A Telegram bot connected to Zammad turns conversations that customers already have with your support account into tickets that agents work in the same queue as email. Customers who write to you on Telegram expect a reply from someone who can see what they said before, and a ticket keeps that history with the customer instead of leaving it in a personal chat on an agent's phone. Teams usually choose this channel when a meaningful share of their customers already message them there, when the product audience is mobile first, or when support runs across regions where Telegram is the default messaging app. It also suits short, transactional questions such as order status, password resets or account access, where a fast written reply matters more than a call.
The channel does not replace a phone line, a formal complaint process or a regulated notice channel. Customers with urgent or safety issues still need a route that gets a human on the line, and complaints that carry statutory or contractual deadlines need the process your compliance team has already defined, with the evidence it requires. Plan Telegram as one front door among several, and decide in advance which topics the bot should redirect to those other routes. Before building anything, confirm the current requirements in the official Zammad channel documentation for your version, because the setup steps and supported behavior depend on that release. Telegram's bot API also changes over time, so check its current behavior for the message types and attachments you expect your customers to send.
Telegram channel options and when each fits
This table compares the Telegram channel settings that change what customers see and what your team keeps, grouped by the effect each choice has. Read each row against your team type (consumer-facing, internal or partner-facing, or strict retention) and settle the decision in the right-hand column before you enable the bot. Exact field labels should be confirmed in the Zammad admin interface for your version.
| Choice | Effect | Best fit | Decide before go-live |
|---|---|---|---|
| Welcome message | Sent when a customer first opens a conversation with the bot, setting expectations about hours and what to include. | Consumer-facing teams that need to explain hours, data requests and escalation paths. | Wording that avoids promising response times you cannot meet, and whether it mentions privacy notice links. |
| Goodbye message | Confirms that a conversation has been closed, typically after the customer or agent ends it. | Consumer-facing teams that want a clear close and a prompt to reopen by writing again. | Whether the message invites feedback and which language or languages it uses. |
| Destination group | Determines which agents see new Telegram tickets and who can pick them up. | Internal or partner-facing teams that route by product line or region. | A dedicated group with named members, and who covers out-of-hours messages. |
| Default owner | Assigns new tickets to a specific agent rather than leaving them unowned in the group queue. | Small teams with one designated responder, or specialist partner teams. | Whether ownership should follow availability, and how reassignment works when that agent is away. |
| /start command | Starts the customer's conversation flow, so the welcome message and ticket creation begin from the customer's first contact. | Consumer-facing teams that want a predictable first step for every new user. | Whether customers must send /start before messages are accepted, and how you explain it in the bot profile. |
| /end command | Lets the customer close the conversation, which affects when the ticket is treated as finished. | Teams with short, transactional exchanges such as order or appointment questions. | Whether closing a ticket from Telegram should be allowed, and whether a later message reopens the same ticket. |
| Mapping to the open ticket | New messages from the same chat attach to the customer's open ticket instead of creating duplicates. | Teams with ongoing cases where context must stay in one thread. | How long a conversation stays open, and what happens when a customer writes after a ticket is closed. |
| Attachment handling | Inbound files and images are stored on the ticket, subject to Telegram's 20 MB limit for files the bot can receive. | Teams where customers send documents, screenshots or proof of payment. | Maximum file types and sizes your agents accept, and who reviews files for sensitive or malicious content. |
| Retention of messages and attachments | Determines how long Telegram content remains in Zammad and in backups, which matters for deletion requests. | Teams under strict retention or data protection obligations. | A written retention period for tickets and attachments, and how deletion requests are fulfilled in backups. |
How a Telegram message reaches an agent
The flow starts when a customer sends a message to the bot in Telegram. Telegram's servers deliver that message to the Zammad endpoint over HTTPS, which is the first hand-off that crosses into your infrastructure. Zammad then matches the sender to the customer's open ticket or creates a new one in the destination group. The agent's reply returns through the same bot, which uses the bot token to send it back. Check that the endpoint is reachable over HTTPS and that the token is stored only on the Zammad side.
Customer messages cross Telegram's servers into Zammad, and replies return through the bot.
How to register the bot and connect it to Zammad
This sequence takes a Telegram bot from creation in BotFather to a tested two-way channel in Zammad, so inbound chats open tickets and agent replies reach the customer. Each step ends with a check you can run before moving on.
Create the bot with BotFather
An administrator opens a chat with Telegram's BotFather account, starts a new bot, chooses a display name and a username, and receives an API token. Store the token in your secrets manager or password vault and restrict who can view it, because anyone holding it can act as the bot. Done means the bot appears in your BotFather list and you have a token recorded. Confirm the exact BotFather command names and the current token format against the Zammad documentation and Telegram's own bot documentation before you start, since both can change.
Confirm HTTPS reachability from the internet
The infrastructure team checks that the Zammad hostname resolves publicly, that the reverse proxy accepts HTTPS connections on the public address, and that the certificate is issued by a trusted authority and is not expired. Telegram delivers messages to Zammad by calling an address on your server, so an internal-only hostname or a self-signed certificate will stop inbound messages. Run an external check from a network outside your office or VPN. Done means a request to the public Zammad address returns a valid certificate chain with no warnings.
Add the Telegram channel in Zammad
A Zammad administrator opens the channel settings for Telegram, pastes the bot token from the first step, and saves the configuration. Zammad then registers its webhook with Telegram, so confirm that the channel shows as active and that no error appears on the channel screen. Keep the token out of tickets, screenshots and shared chat channels. Done means the channel is enabled and Zammad reports no token or webhook error. If the status shows a failure, check the reachability result from the previous step first.
Set the destination group and default owner
The administrator chooses the group that should receive new Telegram conversations and decides whether tickets start unassigned or go to a default owner. Align this with your existing routing so that Telegram tickets follow the same escalation path as email. If you use a default owner, confirm that the person is an active agent in that group. Done means a test conversation lands in the chosen group with the expected owner state. Confirm whether any trigger or automation in your instance changes group or owner on ticket creation, because it can override these settings.
Write the welcome and goodbye messages
Draft the welcome message that customers see when they start a conversation and the goodbye message sent when the conversation closes, then add both to the channel configuration. Keep them short, state what information to send, and avoid promising response times unless your support agreement commits to them. Have a second reviewer check wording and language for each queue. Done means both messages appear exactly as approved when the test account triggers them.
Test inbound messages and ticket creation
Using a dedicated test Telegram account, send a message to the bot with the start command, then send a follow-up message in the same conversation. Confirm in Zammad that one ticket was created in the destination group and that the second message was added to that same open ticket rather than opening a new one. Check that the attachment limit and any text formatting behave as you expect in your test. Done means one ticket exists with both messages in order, and the customer identity shown matches the test account.
Test agent replies and closure
An agent replies to the test ticket from Zammad, and the test account confirms the reply arrives in the Telegram chat. Then close the conversation using the end command from the test account and confirm the goodbye message is delivered and the ticket state changes as your process requires. Repeat once with an attachment under the size limit and once with a file over it to see how Zammad reports the rejection. Done means outbound replies reach the test account, closure behaves as documented, and you have recorded the results for sign-off before go-live.
How Telegram messages map to a customer's open ticket
The mapping rule decides whether a customer sees one continuous conversation or a set of unrelated tickets, so confirm it in the Zammad release you deploy before you design queues or macros around it. Start with the simplest case: send a first message from a dedicated Telegram test account, then a second message while the resulting ticket is still open. Check whether the second message is appended to the same ticket and whether any second ticket appears. Record the ticket numbers, the article order and the sender shown on each article. Whatever Zammad does, your agents will rely on that behavior every day.
The harder case is a message that arrives after a ticket has closed. Decide whether a closed ticket should be reopened by a new message or whether the message should start a new ticket, and test the result in the release you run. A duplicate ticket appears when a customer writes again from the same chat and agents work two tickets for one problem. An orphaned conversation appears when a message lands on a closed ticket that no queue or trigger watches, so the customer waits with no visible owner. The /start and /end commands mark the boundaries of a conversation, so test what each one does to the open ticket, including a customer who sends /end twice or writes without /start.
Build a short test matrix before go-live and run it with the same test account. Include a follow-up while the ticket is open, a follow-up after an agent closes the ticket, a follow-up after /end, a new conversation after /start, and a message sent while the ticket is pending. Compare the results with the current Zammad documentation and release notes, and ask the vendor to confirm any case you cannot reproduce. Write the agreed behavior into your agent guidance, so that agents know when to merge tickets and when to leave a conversation alone.
Security risks in a Telegram helpdesk channel
A Telegram channel links a public messaging app to your ticketing system, so the risks sit at the edges: the bot credentials, the public endpoint that receives messages, the customer data that passes through Telegram, and the admins who can change the channel. Each card names one risk, the control to put in place, and what to confirm in your environment before customers use the channel.
Bot token exposure
The bot token issued by BotFather is the credential that lets anyone act as your bot. Anyone who can read the Zammad channel configuration, a backup, or a configuration export can copy it. Store the token only in the channel settings, limit which administrators can open that screen, and rotate the token through BotFather if it appears in a ticket, log, screenshot or shared document. Confirm who holds the admin role in your instance and where backups are kept.
Zammad security settingsHTTPS endpoint and certificate
Telegram sends updates to a public HTTPS address on your Zammad host, so the certificate, the reverse proxy and the path that receives webhook traffic are all exposed. An expired certificate or a misrouted proxy stops conversations silently. Confirm that the certificate chain is valid from outside your network, that the proxy forwards only the webhook path Zammad needs, and that certificate renewal is monitored. Document who owns the renewal process.
Customer data in Telegram
Customers write to your helpdesk through Telegram, an app your organization does not control. Message content, profile details and attachments pass through Telegram's infrastructure before they reach Zammad, which may conflict with your data handling rules for some customer groups. Decide which kinds of requests are acceptable in Telegram, tell customers what not to send, and confirm with your privacy and legal teams whether the channel needs a notice or a different lawful basis.
Bot and agent impersonation
Attackers can create look-alike bots with names close to your support bot, or message customers while posing as your agents. Customers who trust an unexpected account may share credentials or payment details. Publish the exact bot username on your website and in welcome messages, state that agents never ask for passwords or payments in chat, and review who can change the bot name or welcome text. Confirm the public name in BotFather matches what you publish.
Retention on both sides
Messages and attachments persist in two places: in Telegram, under its own retention, and in Zammad, where tickets follow your retention and deletion settings. Deleting a ticket in Zammad does not remove the chat from the customer's Telegram app. Define how long conversations stay in Zammad, how attachments are handled, and what customers are told. Confirm your retention policy with the team that owns records management and test deletion in a non-production instance.
Admin access to channel settings
Changing the channel's group destination, welcome text or active state can redirect conversations to the wrong team or stop intake without notice. Limit channel administration to a named group, log changes through your audit process, and review the list of admins after staff changes. Confirm which roles can open the Telegram channel settings and whether changes are reviewed before they go live.
Choosing Telegram for each customer group
Public-facing support is the most common fit for a Telegram bot. Customers already have the app installed, expect quick replies, and often prefer to type a short question rather than fill in a form. The bot gives them a low-friction entry point, and Zammad keeps each conversation attached to the customer's open ticket so agents work from the same queue as email and web requests. The trade-off is that the customer's messages pass through Telegram's infrastructure, so the organization gives up control over where that traffic travels and how long the platform retains it.
- Volume and hours: Confirm how many conversations the team expects and who answers outside business hours, since a bot without staffed coverage sets wrong expectations.
- Public visibility: Decide whether the bot name and welcome text make clear that conversations are handled by a support team and what information should not be shared in chat.
- Identity checks: Ask whether agents need to verify who the customer is before acting on account changes, because a Telegram username alone is not proof of identity.
- Attachment handling: Note the 20 MB attachment limit and tell customers what to do with larger files.
- Escalation path: Define when a chat moves to email or phone.
Before enabling the channel, confirm with the support lead which customer requests may be handled in chat and with legal which privacy notice covers Telegram conversations.
Some organizations already run their internal or partner communication on Telegram, such as a franchise network, a logistics partner or a vendor team that lives in the app. In these cases a Telegram channel into Zammad matches how people already work, and the cost of asking partners to adopt another portal is avoided. The trade-off is that the partner's account identity and the organization's ticket record depend on a platform the organization does not administer, and offboarding a partner means managing access outside its own identity systems.
- Account ownership: Clarify whether partner contacts use personal Telegram accounts or dedicated business accounts, since personal accounts are harder to revoke.
- Mapping to customers: Check that each Telegram conversation is tied to the correct organization and contact record in Zammad before agents act on it.
- Access removal: Agree how a departing partner contact is blocked from the bot and how existing tickets are reassigned.
- Scope of content: Set rules for what partners may send, such as order references but not payment data.
- Ownership of the bot: Record which team holds the BotFather account and the bot token, and who can rotate the token.
Before enabling the channel, ask the partner management lead which partner agreements allow Telegram as a support channel and whether those agreements require the organization to keep the conversation record.
Where conversations involve health information, financial account details, government identifiers or other sensitive personal data, a channel the organization fully controls is usually the safer design. In this model, Telegram is at most a notification or first-contact prompt, and the customer is directed to a portal, a web form or an authenticated channel hosted in infrastructure the organization runs. The trade-off is slower first response and extra friction for customers, but the organization keeps tighter control over data residency, retention and the identity of the person on the other end.
- Data classification: Ask compliance which categories of data may never be entered in a Telegram chat and document that rule for agents and customers.
- Retention and deletion: Confirm with legal how long conversation data must be kept in Zammad and how Telegram-side history is handled.
- Authentication: Require that account-specific requests move to an authenticated channel before any action is taken.
- Audit evidence: Check that Zammad's logs and ticket history can show who handled each conversation.
- Routing rule: Decide which request types are redirected away from the bot and how the redirect is worded.
Before enabling the channel, confirm with the compliance lead which regulations apply to the customer data and whether an independent assessor would expect this channel to appear in the scope of review.
Limits to confirm before go-live
A Telegram channel depends on limits set by Zammad and by Telegram's Bot API, and some of them are easy to miss until customers hit them. Check each card against the current Zammad channel documentation and Telegram's own documentation in your environment before you announce the bot.
Attachment size limit
Telegram bots can only exchange files up to a size cap, and a customer who sends a larger file will not reach the ticket. The brief lists 20 MB as the figure for this channel, but confirm the current value in Zammad's channel documentation for Telegram before go-live, because the limit can change between releases. Then send a test file just above and just below the limit and confirm what the agent sees in the ticket. Tell customers the limit in your welcome message so they know to send a link instead.
Supported message types
Bots receive some message types well, such as text, and handle others differently, such as stickers, voice notes, locations, contacts and edited messages. Build a list of the types your customers actually send and test each one through the bot, noting what reaches the ticket, what is dropped and whether agents can reply in the same format. Decide in advance how agents should answer a type the bot cannot send back, and document that for your team.
Telegram API rate limits
Telegram's Bot API limits how many messages a bot can send in a given period, and it limits sends to the same chat more tightly than to different chats. A busy queue of agent replies or automated notifications can hit these limits and delay responses. Read the current rate limit guidance in Telegram's Bot API documentation, then estimate your peak reply volume with the support team and ask Zammad how it handles a send that Telegram rejects.
HTTPS reachability from Telegram
Telegram delivers updates to your Zammad instance over HTTPS, so Telegram's servers must reach a public address with a valid certificate. A reverse proxy that blocks outside traffic, a self-signed certificate or a firewall rule that only allows known networks will silently stop messages from arriving. Confirm the callback path in Zammad's Telegram channel setup, check the certificate chain from outside your network, and verify that the webhook returns successful responses after you register the bot.
Group chats versus direct messages
A bot in a group chat sees a different set of messages than a bot in a one-to-one chat, and group privacy settings determine whether it receives every message or only commands. Decide whether your Telegram channel will serve only direct conversations or also groups, then confirm with BotFather how privacy mode is set. If groups are in scope, define which member's message opens or updates a ticket and how staff members in the group are handled.
Content agents cannot open
A customer may send a file type, a media format or an encrypted attachment that the agent's browser cannot display. Test how Zammad presents these items, whether the agent can download the original and whether the ticket still shows the text that came with them. Decide and document the agent workaround, such as asking the customer to resend in a supported format, and confirm that downloads respect your access and retention rules.
Questions teams ask before setting up Telegram in Zammad
What determines how much work a Telegram setup in Zammad takes?
The effort depends on how your Zammad deployment is already built, how the public endpoint is exposed, and how many groups will receive Telegram conversations. A single installation behind an existing, well-documented reverse proxy with a valid certificate is a small change. Effort grows when the deployment runs as several instances, when TLS certificates are managed by hand, when traffic must route through new network paths, or when several groups need separate routing and agent rules. Testing scope matters as much as configuration, because every conversation path (welcome, ticket creation, replies, /end, and attachments) should be checked before customers use the bot. Ask any partner to base its quote on a written list of these factors.
Can an internal team set up Telegram in Zammad without outside help?
Yes, a team with Zammad administration experience and comfort with its reverse proxy and certificates can usually complete the setup alone. The work involves creating the bot with BotFather, configuring the channel in Zammad, making the HTTPS endpoint reachable, and testing conversations end to end. Teams that lack recent experience with web server configuration, certificate renewal, or a staging environment for testing often find that the risky part is the first production rollout rather than the configuration itself. An outside partner can review the design, carry out the build, or run the test plan, and the division of work should be agreed in writing before the engagement starts.
What does the organization need to provide before the Telegram work starts?
Plan for five inputs before anyone touches the configuration:
- Administrator access to the Zammad instance and to the reverse proxy or load balancer that serves it.
- A public HTTPS hostname that Telegram can reach, with a valid certificate.
- A test Telegram account and a test bot, so that conversations can be run without affecting customers.
- A named owner for the bot token and its storage, because the token grants control over the bot.
- Decisions on which group owns Telegram tickets, how long conversation data is retained, and who may read it.
If any of these are missing, the schedule depends on how quickly the missing item is decided, so resolve them early.
How long does a Telegram channel setup take in Zammad?
No fixed duration applies to every environment, so the timeline depends on scope, existing infrastructure, and how much testing the organization requires. A single channel on a stable deployment with a ready hostname can move quickly, while a multi-group design, new certificate work, or a change window for the production proxy adds time. Testing usually takes longer than teams expect, since it has to cover welcome and goodbye messages, ticket mapping, attachments, and repeated customer contacts. Ask for a timeline that lists each stage, the dependencies on your team, and the test exit criteria, and treat any figure without that breakdown as unverified.
What ongoing work follows a Telegram channel in Zammad?
The channel needs recurring attention after go-live. Plan for these routine tasks:
- Rotating the bot token on a schedule your security policy sets, and updating Zammad when it changes.
- Monitoring the public endpoint so that a failed certificate, proxy change, or outage does not silently stop incoming messages.
- Reviewing Telegram and Zammad release notes at each upgrade, then retesting the conversation flow before and after the upgrade.
- Reviewing ticket ownership and retention rules as the team and customer base change.
Assign these tasks to a named role so they survive staff turnover, since a stale token or expired certificate often surfaces only when customers stop getting replies.
Does a Zammad support subscription cover Telegram setup?
A Zammad support subscription is separate from the work of building a Telegram channel and should be checked for what it includes. Zammad sells self-hosted support subscriptions named Business at 2,999 EUR per year, Enterprise at 5,999 EUR per year, and Corporation at 9,999 EUR per year, according to the Zammad pricing page. Zammad's self-hosted support response times are 6 hours for Business, 4 hours for Enterprise, and 2 hours for Corporation, according to the same source. Confirm with Zammad whether a subscription covers questions about a specific channel, and separately confirm what a partner's scope includes, because the two services answer different needs.
What should a written quote for Telegram work include?
A useful quote states the scope in concrete terms. It should list the channel configuration, the number of groups and routing rules, the hostname and certificate work, the test plan with its cases, the handover of documentation, and any post-go-live support period. It should separate one-time build effort from recurring work such as retesting at upgrades or token rotation support. Ask which assumptions the price depends on, such as access to the proxy, the test environment, and the number of groups. DeployOpen plans its engagements as fixed scope with deliverables and timelines agreed in writing before work starts, so compare any proposal against that same level of detail.
What typically goes wrong when Telegram conversations stop reaching Zammad?
Most failures trace back to the endpoint rather than to Zammad itself. Common causes include an expired or incomplete certificate chain, a reverse proxy that blocks or rewrites requests to the callback path, a hostname that resolves differently from the one registered, and a bot token that was rotated without updating Zammad. Attachments can also fail when they exceed the 20 MB limit, so customers should be told to send smaller files or links. When troubleshooting, first confirm that the public HTTPS address responds from outside your network, then check the Zammad channel status and logs, and finally run a controlled test conversation to isolate the step that fails.
How DeployOpen scopes and delivers a Telegram channel
DeployOpen plans, builds and hands over a Telegram channel for Zammad inside your own infrastructure, starting with a written scope that names the bot, the HTTPS endpoint, the group that receives conversations and the handling rules agents will follow. The work is documented and tested before the channel goes live, so your team can run it after handover.
How we scope
- Engagements are fixed-scope, with the Telegram bot, endpoints, destination group and message rules agreed in writing before work starts.
- The written scope lists which conversations open tickets, how welcome and goodbye messages read, and who handles /start and /end.
- We confirm HTTPS reachability, the public hostname and the 20 MB attachment limit with your network and security teams first.
How we build
- We register the bot with BotFather, configure the Zammad channel and connect it to the agreed group and sender settings.
- We test customer-to-agent message mapping, so each Telegram chat attaches to the correct open ticket in your helpdesk.
- We check attachment handling, reverse proxy routing and error logging against the scope before any customer sees the bot.
How we hand over
- You receive configuration notes covering the bot setup, channel settings, endpoint requirements and the test cases we ran.
- We document the operating procedure for agents, including how conversations start, close and reopen with the /start and /end commands.
- Handover includes a walkthrough with your administrators so your team can rotate the bot token and update the webhook when needed.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the initial build.
- Retainers can cover Zammad version changes that affect the Telegram channel, so the channel is retested after each upgrade.
- We can retest the channel after changes to the reverse proxy, certificates or Zammad hosting, and report findings with fixes.

