Commit Graph
3 Commits
Author SHA1 Message Date
mahdium c538bfb799 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.
2026-03-09 18:11:30 +03:30
mahdium b6771fe6dd Implement channel handler and simplify the main function 2026-03-09 10:44:00 +03:30
mahdium 29cbe6a38d feat: initialize project structure with configuration, logging, and Telegram integration
- Added configuration loading from environment variables with default session path handling.
- Implemented a logger using Uber's zap library.
- Created a basic HTTP server with Gin and CORS support.
- Established Telegram client and service for message retrieval.
- Introduced initial API routes and handlers.
- Added necessary dependencies in go.sum.
2026-02-24 12:38:23 +03:30