Although the @channel
style chat target for aiogram was implemented in #8, it doesn't work for usernames. This is probably due to Telegram not allowing reverse lookups of user id and groups id but only for channels.
To work around this limitation and also allow the configuration of the same target user/chat for various target platforms, target aliases shall be implemented.
The details are yet to be defined, but this is a first idea:
A user-defined configuration file / ConfigMap can be (optionally) provided, which defines a mapping between an arbitrary target chat alias, and the corresponding chat ids/names for each target platform:
markus:
telegram: "012345678"
matrix: "@markus:matrix.org"
ekeih:
telegram: "123456780"
admin-channel:
telegram: "234567801"
matrix: "@admins:matrix.org"
This configuration is read by alerticular and used to send messages to the correct chat when receiving webhooks on f.ex.:
Since the alias is used in the webhook, the alias name must not use characters unsuitable for a URL.
The alias file could also be used to allow webhook urls like: