telematrix
telematrix copied to clipboard
Automatically create #telegram_.* rooms
This way, people can join without having the HS owner manually add the aliases
These questions possibly fit the needs research label, but
- What if the room is created accidentally e.g. by making Matrix Traveler join there?
- Who has PL100 and owns the room?
- How would someone at Matrix get PL100?
- How would Telegram admin take action against Matrix/bridged problem user?
I am working on a patch to get this to work. The idea is a single user is running a private homeserver and telematrix server. They wish to use Matrix instead of Telegram, so every message they send doesn't need their username prefixed. If anyone else sends a message in the room, their username is prefixed. I am accomplishing this with the following config addition:
"bot_owners": [
"@youruser:DOMAIN.TLD",
"@youruser:matrix.org",
"@youruser:example.com"
],
In __init__.py
, every message is checked against bot_owners
and a prefix is prepended iff they are not listed.
- Who has PL100 and owns the room?
Every username in bot_owners is given PL100
- How would Telegram admin take action against Matrix/bridged problem user?
They would not be able to. They'd have to block the bot entirely
I am not sure if Matrix allows creating a room without a user. If they don't, we could possibly create a @telegram_admin:homeserver.com
that creates the room, invites bot_owners
, then leaves.