- Add video_quality, as_document, audio_format, and file_button to user settings schema and Alembic migrations.
- Categorize /settings into Media & Quality, Appearance & Buttons, and Chat & Clean-up with dynamic back navigation.
- Implement strict document delivery with disable_content_type_detection=True to prevent Telegram video player fallback when as_document is ON.
- Add multi-photo ZIP archive packaging for photo carousels in as_document mode.
- Differentiate DB media file cache entries between video and document types (url#document vs url#video) to eliminate cache collisions.
- Hide redundant Download File inline button when as_document setting is active.
- Remove obsolete referral system (/ref command and links).
- run active-user checks and mass mailing through a shared bounded-concurrency helper
- keep per-user pacing while avoiding fully sequential admin jobs
- remove the completed admin throughput finding from the review backlog
- expose a lightweight queue load snapshot for admin maintenance tasks
- skip scheduled cleanup while downloads are active or queued
- only purge older files during cleanup and update the review backlog accordingly
- Updated user management in `admin.py` to use `get_all_users_info` and streamline user status updates.
- Refactored TikTok URL processing in `tiktok.py` to use asynchronous HTTP requests and caching.
- Enhanced Twitter handler in `twitter.py` to support async operations and improved error handling.
- Simplified user information updates in `user.py` with a new `upsert_chat` method.
- Optimized utility functions in `utils.py` for better performance and added caching for message edits.
- Updated middleware in `chat_tracker.py` to utilize the new `upsert_chat` method for user tracking.
- Improved test coverage for TikTok and Twitter handlers, ensuring async compatibility and error handling.
What changed:
- unified inline media delivery across TikTok, Instagram, Pinterest, SoundCloud, YouTube, and Twitter around a single editable-message flow with chosen-inline auto start and callback fallback
- added reusable inline request state/services, service icons, album deep links, and single-message inline progress/edit helpers
- enabled inline support for regular YouTube videos, Twitter inline media, and Twitter multi-photo album deep links; aligned Pinterest/Instagram/TikTok inline behaviors
- cleaned dead duplicated inline code, extracted shared inline request guards, and expanded tests around TikTok, Pinterest, SoundCloud, and YouTube handlers
- optimized project setup with trimmed runtime requirements, requirements-dev split, .dockerignore, Docker/compose improvements, and README updates
- rebuilt logging with structured context-aware adapters, request scoped flow decorators, JSONL event/perf logs, queue/download/cobalt timing events, and safer extra field sanitization to avoid LogRecord key collisions