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

umputun / tg-spam / 36160447164
84%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2026 04:28PM 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

25 Sep 2026 04:23PM UTC coverage: 84.783% (+0.03%) from 84.758%
36160447164

push

github

web-flow
fix(events): accept user reports only from the monitored group (#462)

* fix(events): accept user reports only from the monitored group

The user-report dispatch ran before the chat filter in procEvents, and
DirectUserReport always acts on the monitored group. A reply /report (or
report, spam, /spam) sent in any other chat the bot is a member of
deleted the command by its message ID in the monitored group, hitting an
unrelated message with the same ID, and an approved reporter's report was
stored with the monitored group's chat ID and the other chat's message
and user, so the threshold ban and the admin ban button acted on them
there.

The dispatch now requires the monitored group, the same check #455
applied to anonymous admins. A report from another chat falls through to
procEvents, which drops it, or spam-checks it as an ordinary message in a
testing chat.

Fixed #459

* fix(events): drop foreign-chat report commands, delete testing-chat spam in its chat

A report command replying in a testing chat fell through to the spam
check, which appends the reported text to the command. The reporter
could be banned for the spam he reported when he was unapproved or the
bot ran with first-message-only off. Non-superuser report commands sent
as replies outside the monitored group are now dropped before the
user-report dispatch, regardless of whether reporting is enabled or the
sender posts as a channel.

Spam detected in a testing chat was banned there but deleted by its
message ID in the monitored group, so the spam stayed and an unrelated
message with the same ID could be deleted. The delete now targets the
chat the message came from.

Related to #459

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

9477 of 11178 relevant lines covered (84.78%)

240.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36160447164.1 25 Sep 2026 04:28PM UTC 44
84.78
GitHub Action Run
Source Files on build 36160447164
  • Tree
  • List 44
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 330404b6 on github
  • Prev Build on master (#36033562144)
  • Next Build on master (#36333994753)
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