Definition

A webhook is a URL you register with Telegram so it instantly pushes new updates — messages, button taps, payments — to your bot in real time.

Bots can receive updates two ways: long polling (the bot repeatedly asks Telegram for new events) or a webhook (Telegram sends events to your URL as they happen). Webhooks are faster and more efficient at scale.

When you connect a bot to a managed platform like GramMaker, the webhook is configured for you, so updates flow in automatically and your bot reacts instantly without you running any servers.

Related terms