Skip to content

Telegram username Whitelist: only those Users' messages are bridged to IRC#446

Open
oliveratgithub wants to merge 2 commits intoRITlug:mainfrom
zorgch:feature/telegram-users-allowlist
Open

Telegram username Whitelist: only those Users' messages are bridged to IRC#446
oliveratgithub wants to merge 2 commits intoRITlug:mainfrom
zorgch:feature/telegram-users-allowlist

Conversation

@oliveratgithub
Copy link
Contributor

This basically mirrors the existing IRC blacklist, but for the Telegram side: allows defining a comma-separated list of Telegram usernames, for whom messages will be allowed to be bridged to IRC. All other user's messages will be ignored.

For that, a new settings env WHITELIST_USERNAMES="" was introduced.
It takes a string representing a comma-separated list of Telegram usernames.

  • Note: when DEBUG is enabled, it will also be verbose about ignored Telegram user's messages, to help potential debugging.

This basically mirrors the existing IRC blacklist, but for the Telegram side: allows defining a comma-separated list of Telegram usernames, for whom messages will be allowed to be bridged to IRC. All other user's messages will be ignored.

For that, a new settings env `WHITELIST_USERNAMES=""` was introduced. It takes a string representing a comma-separated list of Telegram usernames. When `DEBUG` is enabled, it will also be verbose about ignored Telegram user's messages, to help potential debugging.
@oliveratgithub oliveratgithub changed the title Adds Telegram username Whitelist - only defined Users' messages are bridged to → IRC Telegram username Whitelist: only those Users' messages are bridged to IRC Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants