Answer the question
In order to leave comments, you need to log in
Error when uploading a video to the VKontakte server by a bot, how to fix it?
Outputs arguments not found.
What to do? I'm working with long pull, I want to upload an image before displaying it to the user.
def day_one():
a = vk.method("photos.getMessagesUploadServer")
b = arguments.post(a ['upload_url'], files = {'video': open ('IMG_3480.mov', 'rb')}).json()
c = vk.method ('photos.saveMessagesPhoto', {'video': b ['video'], 'server': b ['server'], 'hash': b ['hash']}) [0]
vk.method ("messages.send", {"peer_id": event.obj.peer_id, "message": "Упражнение к первому дню.\n\nЗдесь должно быть описание", "attachment": f'photo {c ["owner_id"]} _ {c ["id"]} ' })
Answer the question
In order to leave comments, you need to log in
Perhaps you meant requests.post and not arguments.post???
(Or, if you passed requests to the arguments variable, then pass the variable to the function)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question