Avatar ·

Posting to Vk via Vk.Api - Python

📁 Cycles, Advanced Python Topics

There is a need to develop a script for posting images to communities (groups) of the vk.com site. I implemented sending simple messages (text), but I can't figure out how to handle attachments, help me good people.

And yes, the image will be represented as

#/dev/usr/env python3# -*- coding: utf-8 -*-import vkmy_app_id = 5484091user_login = 'email@mail.ru' user_password = 'password' session = vk.AuthSession(scope='wall', app_id=my_app_id, user_login=user_login, user_password=user_password)vk.api.access_token=""40d8beaebfdbb3815ef279032bbb6c8b3a13774e0d6ce0fbac670488206