Commit Graph
491 Commits
Author SHA1 Message Date
dependabot[bot] a216b631f0 build(deps): bump alembic from 1.19.1 to 1.20.0 (#96) 2026-09-15 11:50:58 +03:00
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 32c4f22d09 chore(compose): restore pull_policy to always for downloader-bot 2026-09-15 00:15:25 +03:00
Mak5er 5790b5251b fix(history): resolve user username/fullname correctly and fix DownloadHistory.user relationship 2026-09-15 00:14:41 +03:00
Mak5er 57c5050b67 docker: set downloader-bot pull_policy to missing so local builds are preserved 2026-09-15 00:10:39 +03:00
Mak5er 7d8a00b3db admin: make download history blockquotes compact and remove extra line breaks 2026-09-15 00:09:49 +03:00
Mak5er 6fcd834383 chore(compose): set pull_policy to always for downloader-bot 2026-09-14 23:52:58 +03:00
Mak5er 5a22c39ebe fix(logger): route bot logs to stdout, demote noisy traces to debug, and add startup/shutdown lifecycle logs 2026-09-14 23:41:15 +03:00
Mak5er 71374922cf fix(guest): do not trigger greeting on replies to bot downloads unless supported link is provided 2026-09-14 23:21:18 +03:00
Mak5er c16f4490bb fix(startup): polish setup_dialogs registration order and keyword args in twitter logger 2026-09-14 23:14:49 +03:00
Mak5er 9f77fac8f8 feat(admin): add download history dialog with pagination, filters, and chat messaging 2026-09-14 23:12:40 +03:00
Mak5er c15cc22609 feat(download): record download history and summary logs across all media handlers 2026-09-14 15:24:35 +03:00
Mak5er 56b0062e22 feat(storage): add download_history table, repository mixin, and migration 2026-09-14 15:19:41 +03:00
Mak5er c1831c19f7 refactor(logger): reduce Docker log noise and add concise download summary logging 2026-09-14 15:17:53 +03:00
Mak5er d4595a7e13 feat(guest-mode): add Telegram Bot API 9.0 guest mode support and media download flow
- Add guest_message router and handler for guest mentions in chats where bot is not a member
- Support link detection from direct messages, replies, quotes, and text_link entities
- Integrate with inline media senders for supported platforms and deep-linking for audio/albums
- Add guest rate-limiting and ban enforcement in antiflood and ban middlewares
- Update chat tracker to track guest users without saving non-member group data
- Bypass private chat guard for guest messages
- Add /start settings, /start stats, and /start dl_<token> deep-link handlers
- Add comprehensive test suite in tests/test_guest_mode.py
2026-09-14 14:35:09 +03:00
Mak5er ff08a681fd feat(broadcast): add token bucket rate limiter, forum topic support, and broadcast delivery report 2026-09-08 17:16:51 +03:00
Mak5er c960fc1ae1 feat: add automatic detection and migration when groups upgrade to supergroups 2026-09-08 17:00:48 +03:00
Mak5er e16e964ab6 test: fix ruff lint errors (unused imports and E712 comparisons) 2026-09-08 16:45:01 +03:00
dependabot[bot] 3ca05f8a22 build(deps): bump aiogram from 3.30.0 to 3.31.0 (#95)
Bumps [aiogram](https://github.com/aiogram/aiogram) from 3.30.0 to 3.31.0.
- [Release notes](https://github.com/aiogram/aiogram/releases)
- [Changelog](https://github.com/aiogram/aiogram/blob/dev-3.x/CHANGES.rst)
- [Commits](https://github.com/aiogram/aiogram/compare/v3.30.0...v3.31.0)

---
updated-dependencies:
- dependency-name: aiogram
  dependency-version: 3.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:32:35 +03:00
dependabot[bot] cd4c5b06f2 build(deps): bump yt-dlp from 2026.7.4 to 2026.8.19 (#94)
Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2026.7.4 to 2026.8.19.
- [Release notes](https://github.com/yt-dlp/yt-dlp/releases)
- [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md)
- [Commits](https://github.com/yt-dlp/yt-dlp/compare/2026.07.04...2026.08.19)

---
updated-dependencies:
- dependency-name: yt-dlp
  dependency-version: 2026.8.19
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:32:17 +03:00
dependabot[bot] 822baa7ba3 build(deps): bump python-dotenv from 1.2.2 to 1.2.3 (#91)
Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/theskumar/python-dotenv/releases)
- [Changelog](https://github.com/theskumar/python-dotenv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/theskumar/python-dotenv/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: python-dotenv
  dependency-version: 1.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:31:53 +03:00
dependabot[bot] a6ca73801f build(deps): bump sqlalchemy from 2.0.51 to 2.0.52 (#89)
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.51 to 2.0.52.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.0.52
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:31:35 +03:00
dependabot[bot] eb2cac1788 build(deps): bump alembic from 1.18.5 to 1.19.1 (#88)
Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.18.5 to 1.19.1.
- [Release notes](https://github.com/sqlalchemy/alembic/releases)
- [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/alembic/commits)

---
updated-dependencies:
- dependency-name: alembic
  dependency-version: 1.19.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:30:55 +03:00
dependabot[bot] f4eaebe4e4 build(deps): bump astral-sh/setup-uv from 9.0.0 to 10.0.1 (#92)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 9.0.0 to 10.0.1.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v9.0.0...v10.0.1)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:30:46 +03:00
dependabot[bot] f6c9e06f1b build(deps): bump denoland/deno from 2.9.4 to 2.9.6 (#93)
Bumps denoland/deno from 2.9.4 to 2.9.6.

---
updated-dependencies:
- dependency-name: denoland/deno
  dependency-version: 2.9.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 16:30:38 +03:00
Mak5er a33fd4c235 ci: remove platform canary check workflow and test script 2026-09-08 16:29:04 +03:00
Mak5er 07b96ee040 feat(admin): implement segmented mailing, group reach verification, and admin UI 2026-09-08 16:27:00 +03:00
Mak5er 5a4a58cd83 test: add adversarial m2 test suite 2026-09-08 16:16:37 +03:00
Mak5er b4d9d000b0 feat: separate users and groups, track group membership, and improve admin stats 2026-09-08 16:11:12 +03:00
Mak5er 75fbae02e1 docs: add design spec for user and group separation 2026-09-08 15:25:35 +03:00
Mak5er ef0dacc601 fix(ci): stabilize canary platform checks and runner IP handling
- fix SoundCloud test URL (use valid permanent track 'flickermood')
- fix TikTok test URL (use stable test video) and add TikWM primary check
- add YouTube player client fallback ('android,mweb,web') and cookies support
- gracefully handle datacenter IP bot challenges without failing canary job
- add GITHUB_STEP_SUMMARY markdown reporting and YOUTUBE_COOKIES secret support
2026-09-07 01:48:05 +03:00
dependabot[bot] b94995657b build(deps): bump astral-sh/setup-uv from 8.3.2 to 9.0.0 (#77)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 8.3.2 to 9.0.0.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v8.3.2...v9.0.0)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:44:35 +03:00
dependabot[bot] c18a9a4392 build(deps): bump peter-evans/create-pull-request from 6 to 8 (#79)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6 to 8.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v8)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:44:30 +03:00
dependabot[bot] 1717016fdf build(deps): bump actions/checkout from 4 to 7 (#80)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:40:25 +03:00
dependabot[bot] 85df6f9dae build(deps): bump denoland/deno from 2.3.0 to 2.9.4 (#78)
Bumps denoland/deno from 2.3.0 to 2.9.4.

---
updated-dependencies:
- dependency-name: denoland/deno
  dependency-version: 2.9.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:34:12 +03:00
dependabot[bot] 580d91f27d build(deps): bump actions/setup-python from 5 to 7 (#81)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:34:04 +03:00
dependabot[bot] 6719565520 build(deps): bump matplotlib from 3.11.0 to 3.11.1 (#82)
Bumps [matplotlib](https://github.com/matplotlib/matplotlib) from 3.11.0 to 3.11.1.
- [Release notes](https://github.com/matplotlib/matplotlib/releases)
- [Commits](https://github.com/matplotlib/matplotlib/compare/v3.11.0...v3.11.1)

---
updated-dependencies:
- dependency-name: matplotlib
  dependency-version: 3.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:34:00 +03:00
dependabot[bot] 2bf5665421 build(deps): bump colorlog from 6.11.0 to 6.12.0 (#83)
Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 6.11.0 to 6.12.0.
- [Release notes](https://github.com/borntyping/python-colorlog/releases)
- [Commits](https://github.com/borntyping/python-colorlog/compare/v6.11.0...v6.12.0)

---
updated-dependencies:
- dependency-name: colorlog
  dependency-version: 6.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:33:57 +03:00
dependabot[bot] b9bebfa05d build(deps): bump aiohttp from 3.14.1 to 3.14.3 (#84)
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.14.1 to 3.14.3.
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.14.1...v3.14.3)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-version: 3.14.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-26 16:33:54 +03:00
Mak5er 3ebdeb1d0d Merge pull request #85 from Mak5er/refactor/full-project-audit
refactor: full-project audit — bug fixes, performance, deduplication
2026-07-26 16:31:34 +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 48115e06e7 test(db): update expected default user settings in test_add_user_and_settings 2026-07-22 20:10:56 +03:00
Mak5er 49b172628f fix(ci): fix ruff linting errors and restore compatibility imports 2026-07-22 13:29:52 +03:00
Mak5er f6fcd9e97e build(deps): bump aiogram from 3.29.0 to 3.30.0 2026-07-22 13:25:27 +03:00
Mak5er 3396f5b9b0 build(deps): bump colorlog from 6.10.1 to 6.11.0 2026-07-22 13:25:25 +03:00
Mak5er 4f27959194 build(deps): bump yt-dlp from 2026.6.9 to 2026.7.4 2026-07-22 13:25:23 +03:00
Mak5er 60e5e038c7 build(deps): bump mutagen from 1.47.0 to 1.48.1 2026-07-22 13:25:22 +03:00
Mak5er b3a1ad5cfe build(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.2 2026-07-22 13:25:20 +03:00
Mak5er d9faa6c243 build(deps): bump alembic from 1.18.4 to 1.18.5 2026-07-22 13:25:13 +03:00
Mak5er 2343c62b75 build(deps): bump actions/checkout from 6 to 7 2026-07-22 13:25:11 +03:00