5 Commits
Author SHA1 Message Date
mahdium bc2b38a3b0 feat: add Docker support and CI workflow
- Created a Dockerfile to build and deploy the application using a multi-stage build process.
- Added a GitHub Actions workflow to automatically build and publish the Docker image to GitHub Container Registry on pushes to the main branch.
- Updated go.mod and go.sum to reflect dependency upgrades and changes.
- Modified the RSS generator to extend the photo expiration time from 10 minutes to 12 hours.
- Updated rate limiter configuration to allow for environment variable customization.
2026-05-08 13:54:04 +03:30
mahdium e4877ce0d0 feat: improve RSS output and auth flow
- Add proper XML headers, content type, and marshaling for RSS
- Conditionally expose auth endpoints based on Telegram auth state
- Add device model to Telegram client config
- Improve logging and caching behavior in auth service
2026-03-10 10:54:47 +03:30
mahdiumandQwen-Coder 6ce4236dc5 perf: Cache auth status and centralize timeout configuration
- Add caching for AuthStatus to eliminate redundant Telegram API calls
- Create centralized timeout constants for consistent configuration
- Update handlers and telegram provider to use shared timeout values

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 01:05:27 +03:30
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 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