Connecting a Bot

Connecting a Bot

Your Telegram bot is the interface between your customers and your store.

Prerequisites#

You need a bot token from @BotFather. Each bot can power one Telemerx store.

Providing the token#

During onboarding โ€” or later under Settings โ†’ Bot โ€” paste your token. Telemerx validates it and automatically points the webhook to our servers.

One connection at a time

Don't use the same bot token with another service (such as a polling bot) while it's connected to Telemerx. Telegram allows only one webhook or one polling connection per bot at a time.

Automatic security#

When you connect a bot, Telemerx hardens it for you. We:

  • Generate a unique cryptographic secret for the webhook.
  • Register the webhook with Telegram using that secret.
  • Verify the signature on every incoming update.

This prevents attackers from spoofing updates to your bot.

Rotating and reconnecting#

If a token is ever compromised, generate a new one in @BotFather and update it in Settings. Telemerx re-registers the webhook and rotates the secret automatically.