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:
| Setting | Description |
|---|---|
| Disabled | The bot does not respond to any commands in the group |
| Everyone | All group members can use bot commands |
| Admins only | Only 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:
| Setting | Description |
|---|---|
| Owner only | Only the bot owner (you) can interact with the bot |
| Anyone | Any Telegram user can use the bot's commands |
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:
- Check the webhook is enabled — Go to the dashboard and verify the webhook toggle is on
- Check the bot token — Make sure the token hasn't been revoked in BotFather
- Check group settings — If the bot is in a group, verify group commands aren't set to "Disabled"
- Check command access — If set to "Owner only," other users won't get responses