fix: pass chat_action from target config to Telegram client

chat_action was stored on NotificationTarget model but never injected
into the config dict passed to the dispatcher. Now injected in both
watcher and webhook handler, and read by the dispatcher to pass to
TelegramClient.send_notification().
This commit is contained in:
2026-03-22 23:04:33 +03:00
parent d8a1af0c9e
commit e90c128dca
3 changed files with 8 additions and 0 deletions
@@ -229,6 +229,9 @@ async def _load_link_data(
template_slots[event_key] = tmpl_text
target_config = dict(target.config)
# Inject chat_action for Telegram targets
if hasattr(target, 'chat_action') and target.chat_action:
target_config["chat_action"] = target.chat_action
# Inject bot credentials
if target.type == "email":
email_bot_id = target.config.get("email_bot_id")