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

umputun / tg-spam / 22197227683
83%

Build:
DEFAULT BRANCH: master
Ran 19 Feb 2026 07:44PM UTC
Jobs 1
Files 31
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

19 Feb 2026 07:41PM UTC coverage: 82.663% (+0.2%) from 82.498%
22197227683

push

github

umputun
fix(spam): use SenderChat for channel ban and locator tracking

when a channel posts in a group, Telegram uses a shared fake user
Channel_Bot (ID 136817688) in msg.From. the actual channel identity
is in msg.SenderChat with unique ID and username.

- wire SenderChat.ID into spam Response and locator calls so channels
  are tracked by their real identity instead of the shared bot ID
- set channelID in MsgHandler ban request so banUserOrChannel uses
  BanChatSenderChatConfig instead of falling through to BanChatMemberConfig
- admin /spam command detects origMsg.SenderChat and passes channel ID
  for ban and cleanup
- guard against anonymous admin posts where SenderChat.ID equals the
  group chat ID, preventing the bot from trying to ban the group itself
- skip empty messages in duplicate detector

Related to #370

114 of 129 new or added lines in 4 files covered. (88.37%)

6575 of 7954 relevant lines covered (82.66%)

270.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
89.47
0.19% app/events/events.go
13
84.14
1.37% app/events/admin.go
Jobs
ID Job ID Ran Files Coverage
1 22197227683.1 19 Feb 2026 07:44PM UTC 31
82.66
GitHub Action Run
Source Files on build 22197227683
  • Tree
  • List 31
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0675d4e1 on github
  • Prev Build on refs/tags/v1.23.7 (#22192709262)
  • Next Build on master (#22235142587)
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