The program normally works with group messages, but it does not react to changes in the photo in conversations, or to new messages in them (the bot has access to all correspondence)

from vk_api.longpoll import VkLongPoll, VkEventType, VkChatEventType token = 'токен' def change_chat_photo(): pass vk = vk_api.VkApi(token=token) longpool = VkLongPoll(vk) for event in longpool.listen(): if event.type == VkEventType.MESSAGE_NEW: print('новое сообщение') if event.to_me: print(event.user_id, 'в личке', event.text) if event.from_chat: print(event.user_id, 'в беседе', event.chat_id) if event.type == VkChatEventType.PHOTO: print("Photo changed") 
  • Lay out the code with the text, and not with the picture - TEA

0