Repository navigation
Do not forward auto responder system notes to Telegram topics - #100
Merged
remdex merged 1 commit intoOct 26, 2026
Merged
Conversation
… 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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):The message is dispatched through
chat.before_auto_responder_msg_saved, andmessageAddedResponderforwards 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 showsuser_id = -1messages, so these are internal notes. In a topic they look like visitor messages and flood active chats on mobile.This change skips
user_id = -1messages inmessageAddedResponder. Visitor-facing auto responder messages already carrymeta_msg.content.auto_responderand 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