Skip to content

Commit

Permalink
Fix telegram bot
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Jul 18, 2024
1 parent fd1f82f commit fbfa7a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/management/commands/telegram_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def handle(self, *args, **options):
self.notifications.send_telegram_message(
result["message"]["from"]["id"],
'You must enable the notifications bot using the RoboSats client. Click on your "Robot robot" -> "Enable Telegram" and follow the link or scan the QR code.',
"",
)
continue
token = parts[-1]
Expand All @@ -60,6 +61,7 @@ def handle(self, *args, **options):
self.notifications.send_telegram_message(
result["message"]["from"]["id"],
f'Wops, invalid token! There is no Robot with telegram chat token "{token}"',
"",
)
continue

Expand Down

0 comments on commit fbfa7a0

Please sign in to comment.