Browse Source

feat: telegram bridge admins

main
decentral1se 3 months ago
parent
commit
2beb6e4bf0
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
  1. 2
      .env.sample
  2. 2
      abra.sh
  3. 6
      compose.telegram.yml
  4. 2
      telegram_bridge.yaml.tmpl

2
.env.sample

@ -74,6 +74,8 @@ ENCRYPTED_BY_DEFAULT=all
#VERIFY_SSL=false
#ENABLE_ENCRYPTION=true
#TELEGRAM_APP_ID=
#TELEGRAM_BRIDGE_ADMIN_1=
#TELEGRAM_BRIDGE_ADMIN_2=
#SECRET_TELEGRAM_DB_PASSWORD_VERSION=v1
#SECRET_TELEGRAM_API_HASH_VERSION=v1
#SECRET_TELEGRAM_BOT_TOKEN_VERSION=v1

2
abra.sh

@ -1,4 +1,4 @@
export ENTRYPOINT_CONF_VERSION=v1
export HOMESERVER_YAML_VERSION=v9
export LOG_CONFIG_VERSION=v2
export TELEGRAM_BRIDGE_YAML_VERSION=v1
export TELEGRAM_BRIDGE_YAML_VERSION=v2

6
compose.telegram.yml

@ -20,11 +20,13 @@ services:
- APP_SERVICE_BOT_USERNAME
- APP_SERVICE_DISPLAY_NAME
- APP_SERVICE_ID
- ENABLE_ENCRYPTION
- HOMESERVER_DOMAIN
- HOMESERVER_URL
- VERIFY_SSL
- ENABLE_ENCRYPTION
- TELEGRAM_APP_ID
- TELEGRAM_BRIDGE_ADMIN_1
- TELEGRAM_BRIDGE_ADMIN_2
- VERIFY_SSL
secrets:
- telegram_api_hash
- telegram_as_token

2
telegram_bridge.yaml.tmpl

@ -414,6 +414,8 @@ bridge:
# mxid - Specific user
permissions:
"*": "relaybot"
"{{ env "TELEGRAM_BRIDGE_ADMIN_1" }}": "admin"
"{{ env "TELEGRAM_BRIDGE_ADMIN_2" }}": "admin"
# Options related to the message relay Telegram bot.
relaybot:

Loading…
Cancel
Save