I
I
Ilya Bugaets2020-06-08 11:40:47
Python
Ilya Bugaets, 2020-06-08 11:40:47

Why doesn't the bot send the keyboard?

5 minutes ago, the bot was sending a keyboard, but now I'm getting an error, how can I fix it?
Error:
Traceback (most recent call last):
File "bot.py", line 624, in
vk.method("messages.send", {"peer_id": event.object.peer_id, "keyboard": keyboard, "random_id ": 0})
File "/home/GCBOT/.local/lib/python3.8/site-packages/vk_api/vk_api.py", line 646, in method
raise error
vk_api.exceptions.ApiError: [100] One of the parameters specified was missing or invalid: message is empty or invalid

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Antropov, 2020-06-08
@ilyabugaets

message is empty or invalid

You don't have a message. There must be text
documentation
https://vk.com/dev/messages.send

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question