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

umputun / tg-spam / 22197227683 / 1
83%
master: 83%

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

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

6575 of 7954 relevant lines covered (82.66%)

270.06 hits per line

Source Files on job 22197227683.1
  • Tree
  • List 31
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22197227683
  • 0675d4e1 on github
  • Prev Job for on master (#22192709262.1)
  • Next Job for on master (#22235142587.1)
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