This commit is contained in:
kandrusyak
2026-07-25 15:39:03 +03:00
parent 0163208484
commit 3f63d0305c
6 changed files with 148 additions and 37 deletions

View File

@@ -37,7 +37,7 @@ from .handlers import (
private_voice,
start,
)
from .jobs import post_init
from .jobs import post_init, post_shutdown
from .ollama import OllamaClient
from .storage import AssistantStorage
from .speech import SpeechRecognizer, SpeechTranscriber
@@ -59,6 +59,7 @@ def create_application() -> Application:
Application.builder()
.token(get_bot_token())
.post_init(post_init)
.post_shutdown(post_shutdown)
.build()
)
application.bot_data["storage"] = storage