ptgb
A complete Telegram Bot API client for Dart

Contributing

Bug reports, feature requests, and pull requests are welcome on GitHub.

Filing a bug

A minimal reproduction and the relevant Bot API method name help a lot. Please include:

  • The ptgb version you’re using.
  • The Dart SDK version (dart --version).
  • The method(s) involved, and the exact TelegramApiException (if any) — see Error Handling.
  • A minimal code snippet that reproduces the issue.

Requesting a feature

If the Bot API added a new method or field that ptgb doesn’t wrap yet, note the method name from the official Bot API docs — new endpoints can also be reached immediately through the low-level Bot.call() escape hatch while a typed wrapper is added.

Pull requests

  • Keep changes focused; separate unrelated fixes into separate PRs.
  • Match the existing style: typed methods return Json/List<Json>/bool wrappers around Bot.call, with full /// doc comments.
  • Add or update an example in example/ if you’re introducing user-facing behavior.
  • Run dart analyze and dart format before submitting.

License

ptgb is MIT licensed.