Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telegram fails if api_id and api_hash are not quoted #824

Closed
silasdb opened this issue Jan 25, 2021 · 2 comments
Closed

telegram fails if api_id and api_hash are not quoted #824

silasdb opened this issue Jan 25, 2021 · 2 comments

Comments

@silasdb
Copy link

silasdb commented Jan 25, 2021

Hi. First, thanks for the great work on this playbook!

The mautrix telegram bridge documentation states:

matrix_mautrix_telegram_enabled: true
matrix_mautrix_telegram_api_id: YOUR_TELEGRAM_APP_ID
matrix_mautrix_telegram_api_hash: YOUR_TELEGRAM_API_HASH

I copied the telegram app_id and api_hash directly to this, without worrying about quoting. Ansible wrote wrote it literally to /matrix/mautrix-telegram/config/config.yaml (without quotes). The Python YAML parser, later, fails to parse this file or parses it incorrectly because of lacking of double quotes (single quotes doesn't seem to work) and the mautrix-telegram bridge fails with api_id/api_hash mismatch error.

I'm not an Ansible specialist, so I don't know if surrounding the app_id and api_hash with double quotes results in the api_id and api_hash being written with double quotes in config.yaml (or if they are lost on the expansion rules), but maybe it is a good idea to be more strict about quoting when setting the matrix_mautrix_telegram_api* variables.

@spantaleev
Copy link
Owner

See if it works now. Should be fixed by dd24942.

@silasdb
Copy link
Author

silasdb commented Jan 27, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants