mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 21:04:03 +00:00
fix(bot): hand off reminder dashboard opens through dm
This commit is contained in:
@@ -92,6 +92,7 @@ const bot = createTelegramBot(
|
||||
getLogger('telegram'),
|
||||
householdConfigurationRepositoryClient?.repository
|
||||
)
|
||||
bot.botInfo = await bot.api.getMe()
|
||||
const webhookHandler = webhookCallback(bot, 'std/http', {
|
||||
onTimeout: 'return'
|
||||
})
|
||||
@@ -359,6 +360,11 @@ const reminderJobs = runtime.reminderJobsEnabled
|
||||
miniAppUrl: runtime.miniAppAllowedOrigins[0]
|
||||
}
|
||||
: {}),
|
||||
...(bot.botInfo?.username
|
||||
? {
|
||||
botUsername: bot.botInfo.username
|
||||
}
|
||||
: {}),
|
||||
logger: getLogger('scheduler')
|
||||
})
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user