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
ptgbversion 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>/boolwrappers aroundBot.call, with full///doc comments. - Add or update an example in
example/if you’re introducing user-facing behavior. - Run
dart analyzeanddart formatbefore submitting.
License
ptgb is MIT licensed.