15 lines
418 B
Python
15 lines
418 B
Python
from typing import Literal
|
|
|
|
from pydantic import PositiveInt
|
|
|
|
from birthday_pool_bot.telegram_bot.enums import TelegramBotMethodEnum
|
|
from birthday_pool_bot.telegram_bot.settings import TelegramBotSettings
|
|
|
|
|
|
class TelegramBotPollingSettings(TelegramBotSettings):
|
|
method: Literal[TelegramBotMethodEnum.POLLING.value] = (
|
|
TelegramBotMethodEnum.POLLING.value
|
|
)
|
|
|
|
timeout: PositiveInt = 10 # in seconds
|