Advertisement
PythoNyashka

Untitled

Mar 31st, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import vk_api
  2.  
  3. peer_id = 2000000000
  4.  
  5. vk_session = vk_api.VkApi('+71234567890', 'mypassword')
  6. vk_session.auth()
  7.  
  8. vk = vk_session.get_api()
  9.  
  10. resp = vk.messages.getConversationMembers(peer_id=peer_id)
  11.  
  12. for i in resp['items']:
  13.     print(i['member_id'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement