Answer the question
In order to leave comments, you need to log in
Sending messages to a vk_api conversation?
There is a bot for VK written in python. There are keys by which he answers questions. And how to add to it so that he answers in a conversation too. Responds only to PM. Peer_id it takes the id of the user who wrote to him and replies. def create_answer
(data, token):
load_modules()
peer_id =data['peer_id']
message, attachment = get_answer(data['text'].lower())
vkapi.send_message(peer_id, token, message, attachment)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question