diff --git a/docs/configuring-playbook-bridge-mautrix-telegram.md b/docs/configuring-playbook-bridge-mautrix-telegram.md index f83a4dda2..18bd630d8 100644 --- a/docs/configuring-playbook-bridge-mautrix-telegram.md +++ b/docs/configuring-playbook-bridge-mautrix-telegram.md @@ -13,3 +13,9 @@ matrix_mautrix_telegram_api_hash: YOUR_TELEGRAM_API_HASH ``` You then need to start a chat with `@telegrambot:YOUR_DOMAIN` (where `YOUR_DOMAIN` is your base domain, not the `matrix.` domain). + +If you want to use the relay-bot feature ([relay bot documentation](https://github.com/tulir/mautrix-telegram/wiki/Relay-bot)), which allows anonymous user to chat with telegram users, use the following additional playbook configuration: + +```yaml +matrix_mautrix_telegram_bot_token: YOUT_TELEGRAM_BOT_TOKEN +``` diff --git a/roles/matrix-bridge-mautrix-telegram/defaults/main.yml b/roles/matrix-bridge-mautrix-telegram/defaults/main.yml index 4f30d8fcd..4e6adb262 100644 --- a/roles/matrix-bridge-mautrix-telegram/defaults/main.yml +++ b/roles/matrix-bridge-mautrix-telegram/defaults/main.yml @@ -14,6 +14,7 @@ matrix_mautrix_telegram_data_path: "{{ matrix_mautrix_telegram_base_path }}/data # Get your own API keys at https://my.telegram.org/apps matrix_mautrix_telegram_api_id: '' matrix_mautrix_telegram_api_hash: '' +matrix_mautrix_telegram_bot_token: disabled # Mautrix telegram public endpoint to log in to telegram # Use an uuid so it's not easily discoverable. @@ -297,7 +298,7 @@ matrix_mautrix_telegram_configuration_yaml: | api_id: {{ matrix_mautrix_telegram_api_id }} api_hash: {{ matrix_mautrix_telegram_api_hash }} # (Optional) Create your own bot at https://t.me/BotFather - bot_token: disabled + bot_token: {{ matrix_mautrix_telegram_bot_token }} # Telethon connection options. connection: