remove unecessary str
This commit is contained in:
parent
d47e4ccc0d
commit
4ae65f4de9
1 changed files with 1 additions and 1 deletions
|
|
@ -997,7 +997,7 @@ class AutomationEngine:
|
||||||
"""Send message via Telegram Bot API."""
|
"""Send message via Telegram Bot API."""
|
||||||
bot_token = config.get('bot_token', '').strip()
|
bot_token = config.get('bot_token', '').strip()
|
||||||
chat_id = config.get('chat_id', '').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:
|
if not bot_token or not chat_id:
|
||||||
raise ValueError("Bot token and chat ID are required for Telegram")
|
raise ValueError("Bot token and chat ID are required for Telegram")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue