Бот не отвечает и пишет в консоли KeyboardInterrupt (Longpoll 5.90)
import vk_api
from vk_api.utils import get_random_id
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
vk_session = vk_api.VkApi(token="token")
vk = vk_session.get_api()
longpoll = VkBotLongPoll(vk_session, "198104184")
for event in longpoll.listen():
if event.type == VkBotEventType.MESSAGE_NEW:
if event.obj.text == 'тест':
if event.from_chat:
vk.messages.send(
random_id=get_random_id(),
peer_id=event.obj.peer_id,
message="bruh")