import vk_api
from vk_api.utils import get_random_id
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
import requests
from vk_api.longpoll import VkEventType
vk_session = vk_api.VkApi(token="я чеченец")
vk = vk_session.get_api()
longpoll = VkBotLongPoll(vk_session, "186308067")
for event in longpoll.listen():
if event.type == VkBotEventType.MESSAGE_NEW:
if event.obj.text == 'ок':
if event.from_chat:
vk.messages.send(
user_id=event.obj.from_id,
random_id=get_random_id(),
chat_id=event.chat_id,
message="bruh")
if event.obj.text == 'кто':
if event.from_chat:
vk.messages.send(
user_id=event.obj.from_id,
random_id=get_random_id(),
chat_id=event.chat_id,
message="нет")