LongPoll in vk_api

What if there is no LongPoll in the vk_api libraries?

As of 02/03/2021, the developers of the vk_api module for Python apparently simply forgot to add the long poll import or accidentally deleted it.





To fix the developer error:





  1. Open the folder with the module





  2. Add the code below to the file "__init__.py"





from .longpoll import VkLongPoll
      
      



Or just download the already edited "__init__.py " file and replace the old one with the new one.








All Articles