Ver Fonte

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 há 4 dias atrás
pai
commit
d95d69202f
1 ficheiros alterados com 1 adições e 0 exclusões
  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'