• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

galthran-wq / telegram-scraper-service
68%

Build:
DEFAULT BRANCH: master
Repo Added 14 Feb 2026 11:29AM UTC
Files 17
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • feat/hot-add-sessions-and-pool-status
  • feat/improvements
  • feat/photos
  • fix/ship-scripts-and-authkey-input
  • master

12 May 2026 10:25AM UTC coverage: 68.142% (+0.6%) from 67.568%
25728546628

push

github

web-flow
fix: ship scripts/ in docker image + accept auth_key hex + DC input (#7)

* fix: ship scripts/ in docker image + accept auth_key hex + DC input

Two follow-ups from real dev-deploy testing:

1. Dockerfile only COPY'd src/, so scripts/add_session.py et al. were
   missing from the image and `make {dev,prod}-tg-add-session` failed.
   Adds COPY scripts/ scripts/.

2. Telegram-account marketplaces (lzt.market, lolz.live, ...) hand over
   either a Telethon StringSession or a raw auth_key hex (256 bytes =
   512 hex chars) plus a DC id. add_session.py now auto-detects the
   format: if stdin is exactly 512 hex chars, --dc <1-5> must be
   supplied and the script builds the StringSession via the new
   encode_string_session helper. Otherwise the input is treated as a
   StringSession as before. encode_string_session uses the standard
   DC bootstrap IPs and Telegram port 443.

Tests: encoder round-trips via Telethon's own StringSession parser
(verifies dc_id and auth_key.key match); also covers bad-input rejection.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test: cover all 5 DCs, high-bit auth_key, non-hex input + _is_auth_key_hex

Review (subagent) caught minor test gaps. Adds:
- parametrize round-trip across DC 1..5 with varied auth_key byte
  patterns (0x01, 0x7f, 0xab, 0xff, 0x5c) so we catch struct-pack
  endianness or DC table mismatches
- explicit ValueError on non-hex input ("zz" * 256)
- direct unit test for _is_auth_key_hex matching the 512-hex-chars-only
  contract

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

14 of 14 new or added lines in 1 file covered. (100.0%)

539 of 791 relevant lines covered (68.14%)

0.68 hits per line

Relevant lines Covered
Build:
Build:
791 RELEVANT LINES 539 COVERED LINES
0.68 HITS PER LINE
Source Files on master
  • Tree
  • List 17
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25728546628 master fix: ship scripts/ in docker image + accept auth_key hex + DC input (#7) * fix: ship scripts/ in docker image + accept auth_key hex + DC input Two follow-ups from real dev-deploy testing: 1. Dockerfile only COPY'd src/, so scripts/add_session.p... push 12 May 2026 10:26AM UTC web-flow github
68.14
25728348569 fix/ship-scripts-and-authkey-input Merge a199d8675 into 54169db9e Pull #7 12 May 2026 10:21AM UTC web-flow github
68.14
25727869945 fix/ship-scripts-and-authkey-input Merge 7fa00b4a4 into 54169db9e Pull #7 12 May 2026 10:11AM UTC web-flow github
68.14
25725867271 master feat: hot-add sessions via StringSession + pool-status endpoint (#6) * feat: hot-add sessions via StringSession + pool-status endpoint - SessionPool accepts both legacy .session SQLite files and new .stringsession text files (one Telethon Stri... push 12 May 2026 09:30AM UTC web-flow github
67.57
25725734842 feat/hot-add-sessions-and-pool-status Merge f8d8dc4a8 into e4cc589f0 Pull #6 12 May 2026 09:28AM UTC web-flow github
67.57
25725455484 feat/hot-add-sessions-and-pool-status Merge a334e7ce7 into e4cc589f0 Pull #6 12 May 2026 09:22AM UTC web-flow github
66.97
22133430710 master photos (#4) * photos * user profile images * Apply ruff formatting to telegram.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> push 18 Feb 2026 09:09AM UTC web-flow github
62.3
22133380794 feat/photos Merge 520317f93 into 1148f909b Pull #4 18 Feb 2026 09:08AM UTC web-flow github
62.3
22017180307 master improvements (#3) push 14 Feb 2026 12:17PM UTC web-flow github
65.66
22017050210 feat/improvements Merge ad026954b into 19d2afee6 Pull #3 14 Feb 2026 12:07PM UTC web-flow github
65.66
See All Builds (10)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc