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

umputun / tg-spam / 19417593680
83%

Build:
DEFAULT BRANCH: master
Ran 17 Nov 2025 03:41AM UTC
Jobs 1
Files 31
Run time 909min
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

17 Nov 2025 03:37AM UTC coverage: 81.917% (+0.05%) from 81.869%
19417593680

push

github

web-flow
fix: delete orphaned /report commands to keep chat clean (#346)

* fix: delete orphaned /report commands to keep chat clean

related to #343

- add isReportCommand() helper to detect /report, report, and /report@botname variants
- delete orphaned /report commands from regular users before routing to spam detection
- use update.Message.Chat.ID to delete from correct chat
- preserve existing behavior: superuser orphaned reports are not auto-deleted
- add comprehensive test coverage for all /report command variants

* fix: prevent false positives in report command detection

- use exact match for "report" and "/report" commands
- use prefix match only for "/report@botname" syntax
- add comprehensive test coverage for false positive cases
- fixes potential deletion of legitimate messages like "reporter", "reporting", "reports", etc.

18 of 21 new or added lines in 1 file covered. (85.71%)

6197 of 7565 relevant lines covered (81.92%)

271.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
77.73
1.02% app/events/listener.go
Jobs
ID Job ID Ran Files Coverage
1 19417593680.1 17 Nov 2025 03:41AM UTC 31
81.92
GitHub Action Run
Source Files on build 19417593680
  • Tree
  • List 31
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f78dff1b on github
  • Prev Build on master (#19402309229)
  • Next Build on master (#19440815139)
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

© 2025 Coveralls, Inc