J
J
john_santos2020-09-24 10:49:08
Python
john_santos, 2020-09-24 10:49:08

The bot does not respond to /kick in a conversation, what should I do?

if event.type == VkBotEventType.MESSAGE_NEW:
        if str(event).split(' ')[0] == '/kick':
                    vk.messages.removeChatUser(chat_id=event.chat_id, user_id=str(event).split(' ')[1])

The bot does not give an error and does not see the /kick command in a conversation when people write it, what should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LXSTVAYNE, 2020-09-24
@lxstvayne

Try event.text .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question