fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user