Skip to content

Do not forward auto responder system notes to Telegram topics - #100

Merged
remdex merged 1 commit into
LiveHelperChat:masterfrom
mysubcult:fix/skip-auto-responder-system-notes
Oct 26, 2026
Merged

remdex merged 1 commit into
LiveHelperChat:masterfrom
mysubcult:fix/skip-auto-responder-system-notes

Conversation

@mysubcult

Copy link
Copy Markdown
Contributor

When a visitor on a mobile device comes back after the sync pause configured in the auto responder (mint_reset / maxt_reset), LHC core resets the auto responder and saves a system message (user_id = -1):

Visitor auto responder was reset because of sync timeout, returned after N seconds!

The message is dispatched through chat.before_auto_responder_msg_saved, and messageAddedResponder forwards it to the operator topic like any other chat message. The same happens to the other auto responder system notes ("Visitor was redirected to survey by auto responder!", "Auto responder got error ..."). The visitor widget never shows user_id = -1 messages, so these are internal notes. In a topic they look like visitor messages and flood active chats on mobile.

This change skips user_id = -1 messages in messageAddedResponder. Visitor-facing auto responder messages already carry meta_msg.content.auto_responder and are handled as before. Bot (-2) and operator messages are not affected. The notes are still visible in the LHC back office.

🤖 Generated with Claude Code

… topics

Messages like "Visitor auto responder was reset because of sync timeout" are
saved with user_id = -1 and dispatched through chat.before_auto_responder_msg_saved.
They are internal notes (the visitor widget never shows them), but they were
posted into the operator topic as if they were chat messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@remdex
remdex merged commit f85bee6 into LiveHelperChat:master Oct 26, 2026
mysubcult added a commit to mysubcult/telegram that referenced this pull request Oct 26, 2026
…perChat#98, LiveHelperChat#100, LiveHelperChat#101, LiveHelperChat#104 accepted upstream; fork already had them)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mysubcult
mysubcult deleted the fix/skip-auto-responder-system-notes branch October 26, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants