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 notification #1889

Closed
nsk opened this issue Dec 24, 2023 · 3 comments
Closed

Telegram notification #1889

nsk opened this issue Dec 24, 2023 · 3 comments

Comments

@nsk
Copy link

nsk commented Dec 24, 2023

Is your feature request related to a problem? Please describe.

NO

Describe the solution you'd like

integration of sending notifications and reports to a telegram bot

Describe alternatives you've considered

none

Additional context

I use for speedtest tracker to see yourself you can join this channel: https://t.me/Azotespeedtestbot the bot sends a report once an hour

Copy link

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

@piksel
Copy link
Member

piksel commented Dec 24, 2023

Ehm, do you mean that you want the watchtower notifications to be sent as a private message to that account?

If so, just put --notification-url telegram://TOKEN@telegram?chats=ACCOUNTID where the ACCOUNTID is your bots chat ID. You normally get it by sending a message to https://t.me/shoutrrrbot, but since it's a bot, you probably have access to it in the API.

See https://containrrr.dev/shoutrrr/v0.8/services/telegram/ for more usage information.

@nsk
Copy link
Author

nsk commented Dec 24, 2023

@piksel thanks is perfect :

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
Sleeping for a second to ensure the docker api client has been properly initialized.

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
Making sure everything is sane before starting

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
Retrieving running containers

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
There are no additional watchtower containers

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
Watchtower HTTP API skipped.

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
Watchtower 1.7.1
Using notifications: telegram
Checking all containers (except explicitly disabled with label)
Scheduling first run: 2023-12-25 00:00:00 +0100 CET
Note that the first check will be performed in 6 hours, 19 seconds

Azotespeedtest, [24.12.2023 17:59]
Watchtower updates on 7f03d16137bf
Trace level enabled: log will include sensitive information as credentials and tokens

@nsk nsk closed this as completed Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants