Add bot commands setup, inline keyboards, and project dependencies

This commit is contained in:
2026-07-02 19:15:49 +03:00
parent c4dfe92004
commit 0b5f4ec2d3
14 changed files with 706 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from pydantic import SecretStr
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
"""
Application settings loaded from environment variables or a .env file.
"""
bot_token: SecretStr
# Tell Pydantic to read from a .env file if it exists, ignoring extra fields
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
extra="ignore",
)
# Instantiate the settings so they can be imported elsewhere
settings = Settings()