This commit is contained in:
@@ -40,5 +40,10 @@ async def handle_callback(call: types.CallbackQuery):
|
||||
await call.message.answer("Таймер остановлен ⏹")
|
||||
await call.answer()
|
||||
|
||||
from pomodoro_bot.redis_client import init_redis
|
||||
|
||||
async def on_startup(dispatcher):
|
||||
await init_redis()
|
||||
|
||||
def run_bot():
|
||||
executor.start_polling(dp, skip_updates=True)
|
||||
executor.start_polling(dp, skip_updates=True, on_startup=on_startup)
|
||||
Reference in New Issue
Block a user