tvsignals-to-tg/app/config.py
Artemii Peretiachenko d6c539dca9 Initial TradingView→Telegram webhook service with Render Blueprint.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 16:35:47 +02:00

22 lines
462 B
Python

from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
extra="ignore",
)
telegram_bot_token: str
telegram_chat_id: str
telegram_message_thread_id: int
host: str = "0.0.0.0"
port: int = 8000
@lru_cache
def get_settings() -> Settings:
return Settings()