Selaa lähdekoodia

Merge pull request #318 from benkuly/master

Add telegram relay bot feature to playbook
pull/321/head
Slavi Pantaleev 6 vuotta sitten
committed by GitHub
vanhempi
commit
163a1b4294
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. +6
    -0
      docs/configuring-playbook-bridge-mautrix-telegram.md
  2. +2
    -1
      roles/matrix-bridge-mautrix-telegram/defaults/main.yml

+ 6
- 0
docs/configuring-playbook-bridge-mautrix-telegram.md Näytä tiedosto

@@ -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). 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
```

+ 2
- 1
roles/matrix-bridge-mautrix-telegram/defaults/main.yml Näytä tiedosto

@@ -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 # Get your own API keys at https://my.telegram.org/apps
matrix_mautrix_telegram_api_id: '' matrix_mautrix_telegram_api_id: ''
matrix_mautrix_telegram_api_hash: '' matrix_mautrix_telegram_api_hash: ''
matrix_mautrix_telegram_bot_token: disabled


# Mautrix telegram public endpoint to log in to telegram # Mautrix telegram public endpoint to log in to telegram
# Use an uuid so it's not easily discoverable. # 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_id: {{ matrix_mautrix_telegram_api_id }}
api_hash: {{ matrix_mautrix_telegram_api_hash }} api_hash: {{ matrix_mautrix_telegram_api_hash }}
# (Optional) Create your own bot at https://t.me/BotFather # (Optional) Create your own bot at https://t.me/BotFather
bot_token: disabled
bot_token: {{ matrix_mautrix_telegram_bot_token }}


# Telethon connection options. # Telethon connection options.
connection: connection:


Ladataan…
Peruuta
Tallenna