SettingsIntegrationsMessaging Channels

Telegram

Connect a Telegram bot to send and receive messages

Wexio integrates with Telegram via the Bot API. Once connected, all messages sent to your Telegram bot appear in your Wexio inbox, and agents can reply directly from the platform.

Telegram integration settings

Prerequisites

  • A personal Telegram account (iOS or Android)
  • A Telegram bot with an API token from @BotFather

If you don't have a bot yet, follow the steps below to create one before connecting.

Creating a Telegram Bot

If you already have a bot and its API token, skip to Connecting Telegram.

  1. Open Telegram and search for @BotFather, or go to t.me/BotFather.
  2. Send the command /newbot.
  3. Choose a display name for your bot (e.g. "Acme Support").
  4. Choose a username — it must end in bot (e.g. acme_support_bot).
  5. BotFather will reply with your API token. It looks like this: 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw
  6. Copy the token — you'll need it in the next step.

Keep your API token secret. Anyone with the token can control your bot. If your token is compromised, send /token to @BotFather to regenerate it.

BotFather creating a new bot

Connecting Telegram

  1. Go to Settings → Integrations.
  2. Click Connect next to Telegram.
  3. Paste your bot's API token from BotFather.
  4. Click Connect — the webhook is auto-configured and your bot is now live.
Telegram connection flow

Once connected, send a test message to your bot on Telegram to confirm messages appear in your Wexio inbox.

Troubleshooting Connection

ProblemSolution
Invalid token errorVerify the token matches exactly what BotFather provided. Send /token to BotFather to view or regenerate it
Not receiving messagesMake sure your bot is not connected to another platform. Each bot can only have one active webhook
Bot blocked by userThe contact has blocked your bot. They will need to unblock it or message you again

Supported Message Types

TypeSendReceiveLimits
TextYesYesUp to 4,096 characters. Supports HTML and Markdown formatting
PhotosYesYesUp to 10 MB
VideoYesYesUp to 50 MB
AudioYesYesUp to 50 MB. Displayed as a music player
VoiceYesYesUp to 50 MB. Displayed as a waveform bubble
DocumentsYesYesUp to 50 MB
Animations (GIF)YesYes
StickersYesYes
Video NotesYesYesRound circular videos, max 60 seconds
LocationYesYesStatic, live (up to 24 hours), and venue
ContactYesYesvCard format
Media GroupsYesYesUp to 10 photos/videos per album
ReactionsYesYesEmoji and custom emoji (premium)

Interactive Features

  • Inline keyboard buttons — unlimited buttons arranged in rows with callback data
  • Reply keyboard — custom keyboard layout shown to the user
  • Message editing — update text, captions, and media of sent messages
  • Message deletion — remove sent messages

Bot Settings

Once connected, click on the Telegram integration to open Telegram Bot Settings. The settings panel has six tabs:

Edit Info

Update your bot's public profile information visible to users:

FieldLimitDescription
Profile PhotoManaged via BotFather only
Name64 charactersBot display name
Description512 charactersShown on the bot's profile page
About (Short Description)120 charactersShown in the chat list and when sharing the bot

Click Sync at the top to pull the latest info from Telegram.

Commands

Manage the list of commands displayed in the bot's menu (the / menu in Telegram chats).

  • Enter the command name and a description
  • Click Add Command to add more (up to 100 commands)
  • Click Save to push the commands to Telegram

Mini Apps

Configure the mini app and menu button for your bot:

  • Main Mini App — controls the button shown next to the text input in chats. Managed via BotFather only

Bot Settings

View your bot's current configuration flags synced from Telegram:

SettingDescription
Inline queriesWhether the bot supports inline queries
Read all messagesWhether the bot can read all messages in groups
Add to groupsWhether the bot can be added to groups
Business accountWhether the bot can connect to a Telegram Business account

These flags can only be changed via BotFather — they are read-only in Wexio.

Games

Manage game settings for your Telegram bot:

  • Games must be created via BotFather using the /newgame command
  • Use the tg_callback_game button type in your flows to launch registered games

Payments

Configure payment settings for your Telegram bot:

  • Payment Provider Token — created via BotFather under /mybots → Payments. Each payment provider issues its own token
  • Telegram Stars (XTR) — does not require an external payment provider. Leave the provider token empty to use Stars
  • Use the tg_pay button type in your flows to accept payments from users

Identity Field

Telegram contacts are identified by telegram_id — a numeric ID assigned by Telegram to each user.

Telegram has no messaging window restriction. You can message users at any time after they start a conversation with your bot.

Troubleshooting

IssueSolution
Invalid token errorVerify the token with @BotFather — regenerate if needed
Webhook not receiving messagesCheck that the bot is not connected to another service (only one webhook allowed)
Duplicate messagesEnsure the bot is connected only once in Wexio
Media not sendingCheck file size limits (photos 10 MB, video 50 MB, documents 50 MB)
Bot not respondingConfirm the bot is not blocked by the user and the integration is active

On this page