Plugin Pros

How to Connect a Telegram Bot to WordPress (Shared Team Inbox)

hypernova

Telegram bot connected to a shared WordPress team inbox in wp-admin.

A lot of Telegram WordPress plugins only send you a site notification: a new comment, a form entry, or an order alert that lands in your private chat. That is useful, but it is not how you connect a Telegram bot to WordPress as a shared team inbox.

This guide shows the inbox setup instead. Customers write to your bot. The messages appear in wp-admin. Your agents reply from one screen, next to WhatsApp, live chat, and your other channels.

The steps use the official Telegram Bot API and the free Kinetix Messaging plugin. Every plugin click below comes from the Kinetix channel setup guide. If a detail is not in those docs, it is left out on purpose.

What you need before you connect a Telegram bot to WordPress

  • A Telegram account, so you can talk to @BotFather and create a bot.
  • A WordPress site on a public HTTPS address (the URL starts with https://). Telegram will not send webhook updates to a plain HTTP site.
  • In WordPress, go to Settings → Permalinks, choose anything except Plain, and click Save. Kinetix receives updates on the REST path under /wp-json/kmbp/v1/webhooks/, and Plain permalinks can break that URL.
  • Kinetix Messaging installed and activated. It is free on WordPress.org.

If you are still building the site on your laptop, Telegram’s servers cannot see localhost. Use a public HTTPS tunnel first, or deploy to a live host. That setup is covered in why WhatsApp and Telegram webhooks fail on localhost.

A shared inbox is not a notification bot

You create a bot, get a token, and register a webhook. After setWebhook, Telegram sends an HTTPS POST with a JSON update to that URL whenever someone writes to the bot. Two official limits matter for support work:

  • A bot cannot start the conversation. The customer has to message your bot first, or open it from a t.me link.
  • Anyone who has the bot token has full control of the bot. Treat the token like a password. Do not paste it into a public ticket or a screenshot.

Once the webhook reaches WordPress, Kinetix puts the thread in a shared inbox. Agents are WordPress users, and conversations stay in your own database. That is the difference between a notification plugin and a multi-channel inbox for WordPress.

Step 1: Create the bot with BotFather

Open Telegram and start a chat with @BotFather, Telegram’s official bot for creating and managing bots.

  1. Send /newbot.
  2. Follow the prompts. Give the bot a display name (what people see) and a username. Usernames normally end in bot.
  3. BotFather replies with the bot’s authentication token. It looks like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11. Copy it and store it somewhere private.

You can come back to @BotFather later with /mybots to review the bot, but you only need the token to connect WordPress.

Step 2: Add the token in Kinetix Messaging

In WordPress, open Kinetix Messaging. If you are in the inbox, click the gear icon to open Settings, then pick Telegram on the left.

  1. Turn the Telegram channel on.
  2. Paste the bot token.
  3. Click Verify bot token. This checks that Telegram accepts the token before you register a webhook.

If verification fails, the token is usually incomplete, has an extra space, or was revoked. Copy it again from BotFather and retry. Do not skip this check and jump to the webhook.

Step 3: Register the webhook over HTTPS

Telegram does not poll WordPress for new chats. After you register a webhook, its servers POST each update to your site. Official Bot API rules for that URL:

  • It must be HTTPS.
  • The supported ports are 443, 80, 88, and 8443. Ordinary WordPress sites use 443.
  • A self-signed certificate only works if you also upload the public certificate when you call setWebhook. For a live store, use a normal certificate from your host or Let’s Encrypt instead.
  • Telegram’s webhook guide currently expects IPv4. An IPv6-only host can fail even when the URL looks fine.

In Kinetix, stay on the Telegram settings and open the Webhook tab:

  1. If the plugin offers a webhook secret, click Generate. Telegram can attach a secret to webhook requests so your site can tell they came from the webhook you registered.
  2. Click Register Webhook. The plugin calls Telegram’s setWebhook method for you with your site’s HTTPS URL. You do not have to run the API call by hand.
  3. Confirm the status shows the webhook as active.
  4. Click Save.

Only one webhook can be set on a bot at a time. If you previously pointed the same bot at another tool, this step replaces that URL.

Step 4: Send a test message

Open your bot in Telegram and send a message, or send /start. Then open Kinetix Messaging → Inbox. The conversation should appear there. Reply from the inbox and check that the answer arrives in Telegram.

If nothing shows up, ask Telegram what went wrong. In a browser, open this URL, replacing the placeholder with your bot token, and read last_error_message:

https://api.telegram.org/botYOUR_BOT_TOKEN/getWebhookInfo

That official method returns the current webhook URL, whether a custom certificate is in use, how many updates are waiting, and the most recent delivery error. Do not share the full response in public; it includes your token in the address you just opened.

Step 5: Let the team reply from the shared inbox

You do not need to hand every teammate a full Administrator role just to answer Telegram chats.

  • Create WordPress users and set their role to Messaging Agent. That role is built for inbox work, not the rest of wp-admin.
  • Go to Settings → Agents & Departments, assign departments if you use them (for example Sales or Support), and save.
  • Agents can open the inbox, take or be assigned a thread, and mark it open, pending, or resolved. New chats are auto-assigned only to agents who are marked online.
  • Optional: turn on auto-replies for the channel, browser or email notifications, and AI Support for a first reply from your knowledge base, with a handoff when the customer asks for a human.

To put a Telegram button on your site, open the channel’s Share & Embed settings and paste this shortcode into a page or post:

[kmbp_channel_button channel="telegram"]

You can add label="Chat with us" and style="link" if you want a text link instead of the default button. Remember that the bot still cannot write first. The button or a t.me/your_bot link is how the customer starts the chat.

Common errors (and the fix)

What you seeLikely causeFix
Verify bot token failsThe token is incomplete, has a trailing space, or was revokedCopy the token again from BotFather and paste it with no extra spaces
Webhook will not show as activeThe site is not public HTTPS, or the webhook was never registeredConfirm the live URL uses HTTPS, then click Register Webhook and Save
No error, and no message in the inboxThe site is on localhost, or a firewall never received the POSTUse a tunnel or a public host. If the log shows 403, follow the WordPress webhook 403 guide
getWebhookInfo shows a last_error_messageTelegram reached the URL and got an error, a timeout, or a bad certificateRead that message, fix the URL or SSL, then register the webhook again
Channel is on, but still nothing arrivesThe toggle was not saved, or Permalinks are still set to PlainSave the Telegram settings, then set Permalinks to anything except Plain

Also ask your host or security plugin to allow requests to /wp-json/kmbp/v1/webhooks/. A CDN or firewall can block Telegram’s POST while the WordPress admin still looks fine. Keep signature and firewall rules in place; only add a narrow exception for that path.

Frequently asked questions

Can I connect a Telegram bot to WordPress without a plugin?

Yes, by writing your own setWebhook endpoint, but then you also have to store conversations and give your team a place to work. Kinetix does that inside wp-admin.

Why does a test message never arrive on my local site?

Telegram’s servers must reach a public HTTPS URL. localhost, .test, and .local addresses are not visible to those servers, so the failure is often silent. Use a tunnel, then register the webhook again. See the localhost webhook guide.

Do I need a Meta or WhatsApp account to use Telegram?

No. Telegram is a separate channel with its own bot token and webhook. WhatsApp, Messenger, and Instagram use Meta’s webhook handshake instead. If you also want WhatsApp in the same inbox, follow how to connect your WhatsApp channel.

Can more than one person answer the same Telegram bot?

Yes. That is what the shared inbox is for. Give each teammate the Messaging Agent role, then assign or pick up threads in Kinetix. You do not need to share the bot token with the whole team.

Get the inbox running

Install Kinetix Messaging, connect the Telegram bot with the steps above, and reply from WordPress. When you are ready, add WhatsApp or live chat to the same inbox so your team stops switching apps.

Official documentation