I am trying to setup a Telegram bridge on a Matrix Synapse server.
I’ve followed the standard config recommendations and setup (from the manual and wiki) so far. For Telegram, I’ve created an app through my.telemgram.org created a secret file, e.g:
# cat /etc/secrets/mautrix-telegram.env
MAUTRIX_TELEGRAM_TELEGRAM_API_ID=<redacted>
MAUTRIX_TELEGRAM_TELEGRAM_API_HASH=<redacted>
When launching the service, I get the following error:
Oct 09 19:47:11 cloudy mautrix-telegram[54438]: Failed to create tempfile to write updated config to disk: [Errno 30] Read-only file system: '/nix/store/tmpk8kmmwub.yaml'
Oct 09 19:47:11 cloudy mautrix-telegram[54438]: [CRITICAL@mau.init] Configuration error: appservice.as_token not configured. Did you forget to generate the registration?
I have to setup MAUTRIX_TELEGRAM_APPSERVICE_HS_TOKEN
and MAUTRIX_TELEGRAM_APPSERVICE_AS_TOKEN
, however, these are supposed to be generated according to the (official) example yaml config:
# Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
as_token: "This value is generated when generating the registration"
hs_token: "This value is generated when generating the registration"
How can I generate this as_token
value?