Y
Y
Yakov Klyuev2018-11-08 20:23:54
Python
Yakov Klyuev, 2018-11-08 20:23:54

[Python] Why doesn't detecting changes in a conversation work?

longpoll = VkLongPoll(vk_session)

    for event in longpoll.listen():

        if event.type == VkEventType.CHAT_EDIT:
            if event.type_id == 1:
                msg='a'
                      
            if event.type_id == 6:
                msg='c'
                     
            if event.type_id == 7:
                msg='c'
                        
            if event.type_id == 8:
                msg='b'

            vk.messages.send(
                chat_id=event.chat_id,
                message=msg
                )
            print(msg)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yakov Klyuev, 2018-11-15
@rush_cat

Understood, the wrong method was used.
Desired VkEventType.CHAT_UPDATE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question