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

umputun / tg-spam / 29367402134
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/external-reply-meta
DEFAULT BRANCH: master
Ran 14 Jul 2026 08:56PM UTC
Jobs 1
Files 42
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

14 Jul 2026 08:49PM UTC coverage: 83.678% (+0.05%) from 83.627%
29367402134

Pull #428

github

umputun
feat: detect spam in rich messages (telegram articles)

telegram's client "article" compose type arrives as Message.rich_message
(bot api 10.2) with an empty msg.Text, so its content bypassed every spam
check. flatten rich_message into message.Text in transform() so it flows
through the existing pipeline (stopwords, classifier, llm, prohibited-langs,
locator/duplicate detection).

the library decodes rich_message blocks as generic json (RichBlock/RichText
are `any`), so a recursive walker gathers the visible text spans under
text-bearing keys and drops urls, types and list markers.
Pull Request #428: detect spam in rich messages (telegram articles)

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

2 existing lines in 1 file now uncovered.

8869 of 10599 relevant lines covered (83.68%)

259.28 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
94.25
-0.22% lib/tgspam/detector.go
Jobs
ID Job ID Ran Files Coverage
1 29367402134.1 14 Jul 2026 08:56PM UTC 42
83.68
GitHub Action Run
Source Files on build 29367402134
  • Tree
  • List 42
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #428
  • PR Base - master (#29366044979)
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