a guest Jul 19th, 2017 491 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import vk
- app_id, login, password = 'app_id', 'firstname.lastname@example.org', 'password'
- session = vk.AuthSession(app_id, login, password, scope='messages')
- vk_api = vk.API(session, v='5.62')
- vk_api.messages.send(user_id="304601652", message='hello world!')
RAW Paste Data