M
M
Master_Sniffer2020-05-19 01:21:53
Python
Master_Sniffer, 2020-05-19 01:21:53

I started a community bot. When I write to him (in PM), he answers, when someone else writes to him, (in PM) he does not answer. How to fix it?

vk_session = vk_api.VkApi(token='????')

vk = vk_session.get_api()
longpoll = VkLongPoll(vk_session)

while True:
  for event in longpoll.listen():
    if event.type == VkEventType.MESSAGE_NEW and event.text: # последняя строчка
      print (event.user_id)
      menu()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question