Traceback (most recent call last):
File "C:\Python\kickuserschatbotvk.py", line 25, in <module>
vk.method("messages.send", {"peer_id": event.object.from_id, "message": msg, "random__id": 0})
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\vk_api\vk_api.py", line 636, in method
raise error
vk_api.exceptions.ApiError: [100] One of the parameters specified was missing or invalid: random_id is a required parameter
Введите id пользователя которого хотите кикнуть
-> amanda1212
Ваш ключ для кика - 830889
Traceback (most recent call last):
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 379, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\kickuserschatbotvk.py", line 19, in <module>
for event in longpoll.listen():
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\vk_api\bot_longpoll.py", line 274, in listen
for event in self.check():
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\vk_api\bot_longpoll.py", line 246, in check
timeout=self.wait + 10
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 603, in urlopen
chunked=chunked)
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1321, in getresponse
response.begin()
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 296, in begin
version, status, reason = self._read_status()
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 257, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\ssl.py", line 1052, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\Mr.isid\AppData\Local\Programs\Python\Python37-32\lib\ssl.py", line 911, in read
return self._sslobj.read(len, buffer)
KeyboardInterrupt