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

@@ -94,6 +94,7 @@ export function createReminderJobsHandler(options: {
forceDryRun?: boolean
now?: () => Temporal.Instant
miniAppUrl?: string
botUsername?: string
logger?: Logger
}): {
handle: (request: Request, rawReminderType: string) => Promise<Response>
@@ -109,7 +110,18 @@ export function createReminderJobsHandler(options: {
case 'utilities':
return {
text: t.utilities(period),
replyMarkup: buildUtilitiesReminderReplyMarkup(target.locale, options.miniAppUrl)
replyMarkup: buildUtilitiesReminderReplyMarkup(target.locale, {
...(options.miniAppUrl
? {
miniAppUrl: options.miniAppUrl
}
: {}),
...(options.botUsername
? {
botUsername: options.botUsername
}
: {})
})
}
case 'rent-warning':
return {