while True:
try:
messages = vk.method("messages.getConversations", {"offset": 0, "count": 20, "filter": "unanswered"})
if messages["count"] >= 1:
id = messages["items"][0]["last_message"]["from_id"]
body = messages["items"][0]["last_message"]["text"]
if body.lower() == "начать":
vk.method("messages.send", {"peer_id": id, "message": "1", "random_id": random.randint(1, 2147483647), "keybord" = keybord})
except Exception as E:
print(E)