fix: ignore interactive VK chat messages

This commit is contained in:
nyan404 committed 2026-09-06 18:31:36 +03:00
1 parent ae04d7cb09
commit ed85f94e8d
2 files changed
+21

No files matched your search

+3
View File
@@ -891,6 +891,9 @@ class BelkiBot:
title=title, invited_by=message.get("from_id"))
elif action in {"chat_kick_user", "chat_leave_user"}:
self.conversation_store.mark_removed(int(peer_id), action)
# Interactive commands are private-message only. Keep the registry
# event handling above, but never start a dialog or reply in chats.
return
sender_id = message.get("from_id", message.get("sender_id", peer_id))
text = self._button_text(message) or message.get("text", "")
if peer_id is not None: