Questions tagged [Long polling] (57)

1
answer

Why has stopped working VK bot Python?

Worked, then VK bot in Python. And each began to fail. Nothing like the Internet are not met.
brannon asked April 19th 20 at 12:09
1
answer

How to disable an SSL certificate in Python?

How to disable an SSL certificate in Python? (Working VDS on the Long Poll VK API)
Virgil_Schaden asked April 9th 20 at 10:31
1
answer

How to get direct links from the attachments of long polling?

Use long polling to keep track of all actions on the account (including editing / deleting posts) If you receive a new message with attachements, they are of the form - {'attach1_type': 'photo', 'attach1': '5943728436_455358046'}, How can I get a link to an image without making unnecessary queries?
presley_Mraz asked April 8th 20 at 17:46
1
answer

How to interact with nginx-push-stream-module and php?

Try to deal with the long polling technology article https://habr.com/ru/post/252349/. Recompiled my Nginx with the module, here listing nginx.confuser www-data; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65;...
carlos71 asked April 4th 20 at 13:02
1
answer

How to catch messages from the conversations with Add VK API?

Want to start writing the bot, like everything is carefully initialized and checked, but the bot is not receiving events with messages in the conversation, or even any action to talk directly in a personal bot. Help :(import vk_api from vk_api.add import VkLongPoll, VkEventType vk_session = vk_api.VkApi(token = '9cda f6ba....
lesly.Beat asked March 31st 20 at 22:05
1
answer

[vk_api] Why Add does not respond to the message with lots of attachments?

Hello. Did a bot that when you send him attachments were sent a post to the group. At first everything worked well, the posts were sent, but not the essence. The fact is that when I tried to send 8-10 photos, the server did not sent me events. Help to understand what's going on? Which api does not have this problem? Help.f...
Cali asked March 29th 20 at 23:25
1
answer

Crashes many bugs Python vk_api, add, how to fix?

Exception in thread Thread-7: Traceback (most recent call last): File "C:\Users\user\PycharmProjects\way\venv\lib\site-packages\urllib3\connectionpool.py", line 603, in urlopen chunked=chunked) File "C:\Users\user\PycharmProjects\way\venv\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request six....
Cheyenne asked March 27th 20 at 11:58
1
answer

How to check whether got response when using long polling?

Hello! I want to use the method of long polling, but the question arose. How to understand whether realized the answer to the server? For example: I sent an ajax request to the server. The server code is executed with a delay of 6 seconds, i.e. the browser receives the response only after 6 seconds. After the sending to und...
iva_Ullrich asked March 21st 20 at 13:50
1
answer

Why, in python IndexError: list index out of range?

from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType import vk_api from vk_api.utils import get_random_id vk_session = vk_api.VkApi( token='Oops,it doesn't work that way') vk = vk_session.get_api() group_id = and this too add = VkBotLongPoll(vk_session, str(group_id)) def main(): for event in add.listen(): ...
Katharina.MacGyver15 asked March 19th 20 at 19:55
1
answer

The problem with VK_API\ADD. How to make input?

In General, the query is easy, but not for me. There is a code on long polle. from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType import vk_api vk = vk_api.VkApi(token="toktoken") vk._auth_token() vk.get_api() add = VkBotLongPoll(vk, id) while True: for event in add.listen(): if event.type == VkBotEventType...
Myrl30 asked March 19th 20 at 10:31