fix(bot): hand off reminder dashboard opens through dm

This commit is contained in:
2026-03-11 22:36:43 +04:00
parent 6b8c2fa397
commit a78eb88fa4
11 changed files with 200 additions and 21 deletions

View File

@@ -42,7 +42,8 @@ describe('createReminderJobsHandler', () => {
releaseReminderDispatch: mock(async () => {}),
sendReminderMessage,
reminderService,
now: () => fixedNow
now: () => fixedNow,
botUsername: 'household_test_bot'
})
const response = await handler.handle(
@@ -72,6 +73,12 @@ describe('createReminderJobsHandler', () => {
text: 'Шаблон',
callback_data: 'reminder_util:template'
}
],
[
{
text: 'Открыть дашборд',
url: 'https://t.me/household_test_bot?start=dashboard'
}
]
]
}