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

popstas / telegram-mention-resender / 26027585859
85%

Build:
DEFAULT BRANCH: main
Ran 18 May 2026 10:21AM UTC
Jobs 1
Files 15
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

18 May 2026 10:20AM UTC coverage: 84.597% (+0.03%) from 84.567%
26027585859

push

github

popstas
fix(app): await get_sender for ignore_usernames

Telethon lazy-loads event.message.sender, so for the session owner's own messages (and any case where the sender entity isn't cached) it was None when the NewMessage handler read it. That made username None, the ignore_usernames / ignore_usernames_override guard fell through, and the message was forwarded anyway.

Force-resolve via await event.get_sender() before reading username/id, with a fallback to the attribute on errors (anonymous admins, deleted users). Add a debug log when an ignore list is set but no username could be resolved.

Regression test exercises the lazy path: sender=None plus async get_sender() returning the matching username — previously slipped through, now blocked.

1082 of 1279 relevant lines covered (84.6%)

0.85 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
92.95
-0.17% app.py
Jobs
ID Job ID Ran Files Coverage
1 26027585859.1 18 May 2026 10:21AM UTC 15
84.6
GitHub Action Run
Source Files on build 26027585859
  • Tree
  • List 15
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26027585859
  • 6bcf4d77 on github
  • Prev Build on main (#25960162294)
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