fix: init msg variable

This commit is contained in:
ymq 2026-08-10 18:16:55 +08:00
parent d7ca534714
commit cf46f5dc17

View File

@ -4,6 +4,7 @@
import aiohttp
action = (params_kw or {}).get('action', 'send_message')
msg = ''
if action != 'send_message':
p = params_kw or {}
msg = (p.get('message_text') or '').strip()