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

Add basic telegram notification integration #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nachtalb
Copy link

@Nachtalb Nachtalb commented Dec 22, 2021

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
image

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.

This adds optional start / end notifications and error notifications

Updated README for documentation
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`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@@ -59,6 +60,8 @@ def read_settings(settings_file) -> configparser.ConfigParser:
settings = read_settings(SETTINGS_FILE)
anilist_settings = settings["ANILIST"]
plex_settings = settings["PLEX"]
telegram_settings = settings["TELEGRAM"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would also be useful for the Tautulli mode.

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

Successfully merging this pull request may close these issues.

2 participants