Fixing Telegram DM

This commit is contained in:
Dita Aji Pratama 2026-08-27 19:11:07 +07:00
parent ad52441ff7
commit 31d99f9321

View File

@ -285,7 +285,8 @@ class TelegramClient:
recent_history = "\n".join(recent_msgs)
from tools.roleplayer import should_respond
if should_respond(
# In private chat, always respond regardless of selective response logic.
if chat_type == 'private' or should_respond(
message=body,
sender_nickname=sender_name or str(chat_id),
recent_history=recent_history,