Changelog
Changelog
Section titled “Changelog”2026-02-04 — Refactoring and tests (PR #6)
Section titled “2026-02-04 — Refactoring and tests (PR #6)”Pull Request: hybridgram/tgbot-laravel#6
- Internal refactoring — Routing and route data layer reorganized (e.g.
RouteDataclasses underCore\Routing). Public API ofTelegramRouterand handler signatures remain compatible; existing route handlers and documentation (e.g. Routing Reference) continue to apply. - Console — Updates to
StartPollingCommandand related console wiring. - Tests — Test coverage expanded across the package.
- Code style — Laravel Pint applied for consistent formatting.
Documentation updates (for users):
- Handlers for
onMessage()receiveTextMessageData(namespaceHybridGram\Core\Routing\RouteData): use$data->textfor message text and$data->messagefor the fullMessageobject. - All route data classes live in
HybridGram\Core\Routing\RouteData; the base type providesgetChatId()andgetUserId()in addition togetChat()andgetUser().
No breaking changes for package users; existing code continues to work.