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

[Feature-Request] Telegram: Only receive notifications for reservations #482

Open
ddb9797 opened this issue Mar 19, 2024 · 1 comment
Open

Comments

@ddb9797
Copy link

ddb9797 commented Mar 19, 2024

Is there a way to only receive notifications for made reservations?

@floriegl
Copy link
Contributor

floriegl commented May 7, 2024

Yes, there is an unofficial hack. You could misconfigure the TELEGRAM_BODY to not be valid Markdown V2 which raises a BadRequest for all item updates except reservations (by using two stars after each other 'TELEGRAM_BODY=*$${{display_name}}**'). https://github.com/Der-Henning/tgtg/blob/main/tgtg_scanner/notifiers/telegram.py#L241

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