Skip to content

fix(vk_bot): ignore group chat messages, fix peer_id in longpoll#920

Merged
volodkindv merged 1 commit into
mainfrom
fix/vk-bot-answered-group-chat
Jul 9, 2026
Merged

fix(vk_bot): ignore group chat messages, fix peer_id in longpoll#920
volodkindv merged 1 commit into
mainfrom
fix/vk-bot-answered-group-chat

Conversation

@volodkindv

Copy link
Copy Markdown
Collaborator
  • bot_polling.py: use event.peer_id instead of event.from_user (from_user is sender ID, not the actual conversation peer)
  • message_processing.py: skip messages and callbacks from group chats (peer_id > 2_000_000_000) in both handle_new_message and handle_callback_event

- bot_polling.py: use event.peer_id instead of event.from_user
  (from_user is sender ID, not the actual conversation peer)
- message_processing.py: skip messages and callbacks from group
  chats (peer_id > 2_000_000_000) in both handle_new_message and
  handle_callback_event
@volodkindv volodkindv merged commit ac8ab7c into main Jul 9, 2026
2 checks passed
@volodkindv volodkindv deleted the fix/vk-bot-answered-group-chat branch July 9, 2026 22:15
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.

1 participant