Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import vk
  2.  
  3. app_id, login, password = 'app_id', 'login@vk.com', 'password'
  4. session = vk.AuthSession(app_id, login, password, scope='messages')
  5. vk_api = vk.API(session, v='5.62')
  6.  
  7. vk_api.messages.send(user_id="304601652", message='hello world!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement