Lesson overview

Bot API transport and long polling

Bot API transport and long polling — Telegram bot with a local AI model. Allow methods and sanitize errors; Webhook and polling are exclusive; Offsets acknowledge updates. Practical assignment: Practice: Bot API transport and long polling.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Allow methods and sanitize errors
  • Webhook and polling are exclusive
  • Offsets acknowledge updates

Practical assignment

Practice: Bot API transport and long polling

The full lesson is available as part of the course.

Continue to learning

Course outline

  1. Bot contract and secrets
  2. Authorization before the model
  3. Local model adapter
  4. Bot API transport and long polling
  5. State and uncertain delivery
  6. Offline tests and controlled startup