Fix telegram bot

This commit is contained in:
koalasat 2024-07-18 12:05:04 +02:00
parent fd1f82f2f5
commit fbfa7a060b
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -52,6 +52,7 @@ class Command(BaseCommand):
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]
@ -60,6 +61,7 @@ class Command(BaseCommand):
self.notifications.send_telegram_message(
result["message"]["from"]["id"],
f'Wops, invalid token! There is no Robot with telegram chat token "{token}"',
"",
)
continue