Skip to main content

Webhooks

Webhooks connect your bot to the MyTelegramBots platform so it can receive and respond to messages in real time.

How webhooks work

When a user sends a message to your bot on Telegram, Telegram forwards that message to the MyTelegramBots platform via a webhook URL. The platform processes the message, runs the appropriate role logic, and sends a response back.

Without an active webhook, your bot won't receive or respond to any messages.

Enabling / disabling

In the dashboard, go to your bot's settings and find the Webhook section:

  • Enable — Registers the webhook URL with Telegram. Your bot starts receiving messages immediately.
  • Disable — Removes the webhook from Telegram. Your bot stops responding to messages.

You can toggle the webhook on and off at any time without losing your bot's configuration.

Group commands

When your bot is added to a Telegram group, you can control who can use commands:

SettingDescription
DisabledThe bot does not respond to any commands in the group
EveryoneAll group members can use bot commands
Admins onlyOnly group administrators can use bot commands

This setting is configured per bot in the dashboard.

Command access

You can also control who can use your bot's commands in private chats:

SettingDescription
Owner onlyOnly the bot owner (you) can interact with the bot
AnyoneAny Telegram user can use the bot's commands
note

Global commands (/start, /help, /settimezone, /setlang) are always available to anyone who can message the bot, regardless of the command access setting.

Troubleshooting

If your bot is not responding:

  1. Check the webhook is enabled — Go to the dashboard and verify the webhook toggle is on
  2. Check the bot token — Make sure the token hasn't been revoked in BotFather
  3. Check group settings — If the bot is in a group, verify group commands aren't set to "Disabled"
  4. Check command access — If set to "Owner only," other users won't get responses