Commit Graph
11 Commits
Author SHA1 Message Date
Mak5er 723df68feb admin: remove Message by Chat ID from main admin panel and return back to history on cancel 2026-09-15 00:20:22 +03:00
Mak5er 07b96ee040 feat(admin): implement segmented mailing, group reach verification, and admin UI 2026-09-08 16:27:00 +03:00
Mak5erandClaude Fable 5 caffc343af refactor: apply full-project audit — bug fixes, performance, deduplication
Full-codebase audit (149 raw findings, 57 verified and applied).

Fixes:
- download resume: recompute Range header per retry attempt; never resume
  preallocated multipart .part files (silent media corruption)
- inline sends: canonical error tail (rate-limit/queue-busy/timeout/failure)
  for all platforms; YouTube inline no longer strands tokens in
  'processing' for 6h
- admin mailing: exclude banned users; fix Telegram error-text matching
- middlewares: instantiate once and share across message/callback/inline
  so antiflood/ban state no longer fragments
- event loop: move ZIP compression, JSON state persistence, admin FS
  walks, PIL/ffmpeg/ffprobe work off the loop
- download queue: prune idle per-user scopes; cancelled leader releases
  joined duplicate requests
- worker subprocess: disable log sinks (stderr error protocol and log
  rotation no longer race the parent)
- third-party loggers route through app handlers instead of lastResort
- tiktok: fix mojibake reaction emoji; per-user settings in doc callback;
  per-URL locks for short-URL expansion; parallel photo-set downloads
- ci: fix broken yt-dlp auto-bump workflow baseline
- db: drop redundant analytics_events indexes (migration 000010)

Refactoring:
- services/inline/send_flow.py: shared inline delivery flow for all five
  platforms (~640 duplicated lines removed)
- services/media/audio_flow.py: shared MP3 pipeline (was duplicated 6x
  across youtube/youtube_inline/soundcloud/spotify)
- CobaltMediaService base + shared Cobalt response parsing
- services/platforms/ytdlp_helpers.py: shared yt-dlp scaffolding
- register_inline_send_handlers: one chosen_inline_result/callback
  registration factory for 8 handlers
- merge pinterest/threads single-media and media-group flows
- logging decorator factory; remove ~11 dead repository methods

Tests: 470 -> 518 passing, coverage 77.3% -> 80.9% (CI gate 74%).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-26 16:25:59 +03:00
Mak5er 91b84c83b2 feat(admin): streamline runtime control panel 2026-04-10 21:03:23 +03:00
Mak5er 77c4cda0b8 Refactor logging paths and stabilize db tests 2026-04-10 00:42:21 +03:00
Mak5er d18e0d4b5c chore: clean package exports and lint issues 2026-04-09 16:24:06 +03:00
Mak5er a9389dbf6e fix: clean nested download artifacts safely 2026-04-08 23:48:04 +03:00
Mak5er 0fe5f8d0d3 perf: add bounded concurrency to admin bulk operations
- 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
2026-04-06 23:40:59 +03:00
Mak5er bf9590ac36 fix: make nightly download cleanup queue-aware
- 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
2026-04-06 23:36:02 +03:00
Mak5er 784aee9747 fix: harden inline delivery and bot runtime safeguards
- secure admin callbacks and inline token ownership checks
- stabilize private chat handoff and fail-soft user settings reads
- improve inline album previews with captions, photo file_ids, and API-safe payloads
- fix download manager dedup, resume validation, and size-limit propagation
- add regression coverage for admin, db, runtime, inline, and download flows
2026-04-06 23:07:26 +03:00
Mak5er dda200cc0c Add full quality option to video info keyboard and include full_quality router 2025-12-15 23:58:07 +02:00