feat: prompt users to start Telegram bot for notifications

This commit is contained in:
3252a8
2026-05-30 21:15:17 +03:00
parent 8c0e778388
commit acc222da41
28 changed files with 854 additions and 41 deletions
+6
View File
@@ -438,6 +438,11 @@ class AccountLinkingPanelTests(unittest.IsolatedAsyncioTestCase):
"bot.services.notification_service.NotificationService",
return_value=notification_service,
),
patch.object(
account_routes,
"_probe_telegram_notifications_for_user_id",
AsyncMock(),
) as probe_telegram_notifications,
):
response = await account_routes.account_telegram_link_route(request)
@@ -453,6 +458,7 @@ class AccountLinkingPanelTests(unittest.IsolatedAsyncioTestCase):
source_user_id=-100,
target_user_id=42,
)
probe_telegram_notifications.assert_awaited_once_with(request, 42)
self.assertEqual(panel_calls, ["delete", "update"])
panel_service.delete_user_from_panel.assert_awaited_once_with(
"panel-email",