#!/usr/bin/env python
# -*- coding: utf-8 -*-
import vk_api
def main():
login, password = 'ТВОЙ_EMAIL', 'ТВОЙ_PASSWORD'
vk_session = vk_api.VkApi(login, password)
try:
vk_session.auth()
except vk_api.AuthError as error_msg:
print(error_msg)
return
vk = vk_session.get_api()
# ======================================================================
# ======================================================================
response = vk.messages.send(user_id=5511739, attachment='photo5511739_385086873')
# ======================================================================
# ======================================================================
print response
if __name__ == '__main__':
main()