Traceback (most recent call last):
File "", line 93, in
vk.messages.send(peer_id= user_id, message = text)
File "C:\Program Files\Python37\lib\site-packages\vk_api\vk_api.py", line 646, in __call__
return self._vk.method(self._method, kwargs)
File "C:\Program Files\Python37\lib\site-packages\vk_api\vk_api.py", line 615, in method
raise error
vk_api.exceptions.ApiError: [100] One of the parameters specified was missing or invalid: random_id is a required parameter
def get_random_id():
return random.getrandbits(31) * random.choice([-1, 1])