Skip to content

Releases: gotd/botapi

v0.2.0

14 Jun 09:28
2593c91

Choose a tag to compare

v0.1.0

13 Jun 22:51
c19ca43

Choose a tag to compare

First release of botapi — a hand-written, MTProto-backed Telegram Bot API library built on gotd/td. It exposes the familiar Bot API surface but speaks MTProto directly (no api.telegram.org, no getUpdates/webhooks).

Highlights

  • Full Bot API method surface: messaging, all media sends, edits, forward/copy/delete; the handler framework (On*, predicates, middleware, groups, Context); files (GetFile/download); chat management (members, admin, invite links); commands (with auto-registration); callback/inline queries; stickers; payments, games and passport.
  • Sealed-interface unions with compile-time exhaustiveness (ChatID, InputFile, ReplyMarkup, InlineQueryResult, PassportElementError, …).
  • Resilience: Bot-API-shaped errors with a comprehensive tgerr mapping, AsFloodWait/AsChatMigrated helpers, opt-in flood-wait retry and a proactive rate limiter.
  • Multi-bot pool.Pool, a cmd/botdoc inspector, a method-drift conformance test, benchmarks, a usage guide and runnable examples.

See CHANGELOG.md for the full list.

🤖 Generated with Claude Code