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

umputun / tg-spam / 23994194211
83%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2026 04:30AM UTC
Jobs 1
Files 33
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

05 Apr 2026 04:25AM UTC coverage: 82.786% (+0.01%) from 82.773%
23994194211

push

github

web-flow
Add Google GenAI spam classification support (#386)

* Add Google GenAI spam classification support

After introducing Gemma 4 model family, with nice (for it's size) multilingual capabilities and generous free quota (1.5K req/day), Google GenAI became a clever choice for even relatively large TG groups.

* fix: change MaxTokensResponse type from int to int32 for compatibility

* feat: refactor LLM provider-specific spam detection logic to avoid code duplication

* feat: add LLM consensus configuration and update documentation

* fix: string formatting (golangci-lint)

* refactor: convert LLM consensus functions to methods

* fix: UTF-8 safe truncation for message requests in Gemini and OpenAI checkers

* fix: update LLM eligibility check for short messages in spam detection

* feat: add request timeout for LLM checks and update context handling

---------

Co-authored-by: Umputun <umputun@gmail.com>

224 of 265 new or added lines in 6 files covered. (84.53%)

6887 of 8319 relevant lines covered (82.79%)

259.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
60.37
-0.93% app/main.go
10
84.7
-0.93% app/webapi/webapi.go
5
87.8
-4.11% lib/tgspam/openai.go
3
93.64
0.59% lib/tgspam/detector.go
2
93.75
lib/tgspam/llm.go
Jobs
ID Job ID Ran Files Coverage
1 23994194211.1 05 Apr 2026 04:30AM UTC 33
82.79
GitHub Action Run
Source Files on build 23994194211
  • Tree
  • List 33
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bd70fcf2 on github
  • Prev Build on master (#23966048781)
  • Next Build on master (#23994248693)
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