remove unecessary str

This commit is contained in:
Skowll 2026-05-24 14:52:03 +02:00 committed by GitHub
parent d47e4ccc0d
commit 4ae65f4de9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -997,7 +997,7 @@ class AutomationEngine:
"""Send message via Telegram Bot API."""
bot_token = config.get('bot_token', '').strip()
chat_id = config.get('chat_id', '').strip()
thread_id = str(config.get('thread_id', '')).strip()
thread_id = config.get('thread_id', '').strip()
if not bot_token or not chat_id:
raise ValueError("Bot token and chat ID are required for Telegram")