feat: Add authorization handlers and improve message retrieval limits

- Introduced NewAuthHandler and integrated it into the server routes.
- Added limit query parameter with default value handling in GetLatestMessages.
- Improved error handling for invalid limit values.
- Refactored Config struct to remove unnecessary fields and clean up loading logic.
- Updated Telegram client connection handling to enhance stability.
This commit is contained in:
2026-03-09 18:11:30 +03:30
parent b6771fe6dd
commit c538bfb799
10 changed files with 202 additions and 58 deletions
+1
View File
@@ -18,6 +18,7 @@ func main() {
server.NewGin,
handlers.NewChannelHandler,
handlers.NewAuthHandler,
),
telegram.Module,
fx.Invoke(server.RegisterRoutes),