Answer the question
In order to leave comments, you need to log in
Error when sending a document via VK API. What to do?
Hello!
I have this code:
s4 = requests.Session()
params4 = {
'chat_id': rg, #chat_id
'message': msg3, #сообщение
'access_token': token, #токен
'random_id': 0,
'attachment': doc1_2, #doc1_2 - Название документа
'v': 5.122
}
s4.post('https://api.vk.com/method/messages.send', params=params4)
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