Explorar o código

Add TELEGRAM_DROP_PENDING_UPDATES configuration option - Introduced a new environment variable to control the handling of pending updates in the Telegram bot, enhancing flexibility in bot configuration.

Carles Sentis hai 5 días
pai
achega
d95d69202f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/config/config.py

+ 1 - 0
src/config/config.py

@@ -25,6 +25,7 @@ class Config:
     TELEGRAM_BOT_TOKEN: Optional[str] = os.getenv('TELEGRAM_BOT_TOKEN')
     TELEGRAM_CHAT_ID: Optional[str] = os.getenv('TELEGRAM_CHAT_ID')
     TELEGRAM_ENABLED: bool = os.getenv('TELEGRAM_ENABLED', 'true').lower() == 'true'
+    TELEGRAM_DROP_PENDING_UPDATES: bool = os.getenv('TELEGRAM_DROP_PENDING_UPDATES', 'true').lower() == 'true'
     
     # Custom Keyboard Configuration
     TELEGRAM_CUSTOM_KEYBOARD_ENABLED: bool = os.getenv('TELEGRAM_CUSTOM_KEYBOARD_ENABLED', 'true').lower() == 'true'