KapitanLevan
  • 5 min read
  • Feb. 12, 2025, 8:47 p.m.
  • views: 1

Webhook or Long Polling โ€” which to choose?

A Telegram bot can receive messages in two ways: via Long Polling or Webhook.

๐Ÿ”น Long Polling โ€” the bot requests updates itself. Good for local development.

๐Ÿ”น Webhook โ€” Telegram sends data to your server. Requires a public domain and HTTPS.

If you have a server โ€” use Webhook. If not โ€” Long Polling!

All posts and stories can also be found in the Telegram channel Adventures in IT