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

umputun / tg-spam / 38025293358
84%

Build:
DEFAULT BRANCH: master
Ran 10 Oct 2026 04:52AM UTC
Jobs 1
Files 44
Run time 1min
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

10 Oct 2026 04:47AM UTC coverage: 85.375% (+0.06%) from 85.319%
38025293358

push

github

web-flow
Skip messages without own text in duplicate detection (#472)

* fix(spam): skip messages with no authored text in duplicate detector

The duplicate key is the full checked text, which includes quoted or
replied-to text. Media without a caption posted as a reply carried only
the parent text, so every item hashed the same and an album sent as a
reply could reach the duplicate threshold and get its sender banned.

Skip the check when the message has no text of its own, and drop the
entry tracked for that message ID, so a caption edited away stops
counting.

Related to #471

* fix(spam): clear duplicate history for text-less edits dropped at intake

The listener drops a message with no text before the checks unless it
carries a photo, video, forward, external reply or admitted document.
A caption edited away from audio, or from a file with the documents
check off, never reached the detector, so its old text kept counting
toward the duplicates threshold.

Remove such a message from the duplicate history before the listener
drops the edit. Intake is otherwise unchanged.

Related to #471

46 of 48 new or added lines in 4 files covered. (95.83%)

9819 of 11501 relevant lines covered (85.38%)

226.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.75
-0.24% lib/tgspam/duplicate.go
Jobs
ID Job ID Ran Files Coverage
1 38025293358.1 10 Oct 2026 04:52AM UTC 44
85.38
GitHub Action Run
Source Files on build 38025293358
  • Tree
  • List 44
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ef984f1c on github
  • Prev Build on master (#37225622040)
  • Next Build on master (#38092228143)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc