from typing import Literal from pydantic import AnyHttpUrl, conint, constr from birthday_pool_bot.telegram_bot.enums import TelegramBotMethodEnum from birthday_pool_bot.telegram_bot.settings import TelegramBotSettings class TelegramBotWebhookSettings(TelegramBotSettings): method: Literal[TelegramBotMethodEnum.WEBHOOK.value] = TelegramBotMethodEnum.WEBHOOK.value root_url: AnyHttpUrl root_path: str = "/" port: conint(ge=1, le=65535) = 8000 secret_access_key: constr(pattern=r"^\w{32}$") = "webhooksuperpupersecretaccesskey"