Add basic telegram notification integration#96
Open
Nachtalb wants to merge 1 commit intoRickDB:masterfrom
Open
Add basic telegram notification integration#96Nachtalb wants to merge 1 commit intoRickDB:masterfrom
Nachtalb wants to merge 1 commit intoRickDB:masterfrom
Conversation
This adds optional start / end notifications and error notifications Updated README for documentation
reconman
requested changes
Jan 2, 2022
| To enable this you first have to create a new Telegram Bot by talking to the neat helper [BotFather](https://t.me/BotFather). From him you get a "bot_token" which you have to save in the `settings.ini`. After that you also need a chat | ||
| where to send the messages to. For that add the bot to any chatroom and use a bot like [IDBot](https://t.me/myidbot) to get the chats id. Save this to `chat_id` in the `settings.ini`. | ||
|
|
||
| Last but not least you have to enable the integration by settings `eneabled` in the `[TELEGRAM]` section of `settings.ini` to `True`. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Last but not least you have to enable the integration by settings `eneabled` in the `[TELEGRAM]` section of `settings.ini` to `True`. | |
| Last but not least you have to enable the integration by settings `enabled` in the `[TELEGRAM]` section of `settings.ini` to `True`. | |
| settings = read_settings(SETTINGS_FILE) | ||
| anilist_settings = settings["ANILIST"] | ||
| plex_settings = settings["PLEX"] | ||
| telegram_settings = settings["TELEGRAM"] |
Collaborator
There was a problem hiding this comment.
I think this would also be useful for the Tautulli mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds optional start/end notifications and error notifications
Updated README for documentation
Example of start / error / end notifications. The error seen in this pic comes from #97

In order to not hit any flood limit imposed by telegram we gather all errors/warnings and send them in the end as packages instead of during the execution.