Fix parsing phone and add redis storage for FSM in telegram bot

This commit is contained in:
2026-01-17 20:03:33 +03:00
parent a065c6b7be
commit 781527f2de
14 changed files with 153 additions and 27 deletions

View File

@@ -1,8 +1,13 @@
from pydantic import BaseModel
from .enums import TelegramBotMethodEnum
from .storage import MemoryStorageSettings, RedisStorageSettings
class TelegramBotSettings(BaseModel):
method: TelegramBotMethodEnum = TelegramBotMethodEnum.POLLING
token: str = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
token: str = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
storage: (
MemoryStorageSettings |
RedisStorageSettings
) = MemoryStorageSettings()