Lesson overview

State and uncertain delivery

State and uncertain delivery — Telegram bot with a local AI model. Persist state before external effects; The handler owns the recipient; A send timeout is not proof of rejection. Practical assignment: Practice: State and uncertain delivery.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Persist state before external effects
  • The handler owns the recipient
  • A send timeout is not proof of rejection

Practical assignment

Practice: State and uncertain delivery

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