Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import vk_api
- from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
- vk_session = vk_api.VkApi(token='сюда токен')
- call = vk_session.get_api()
- group_id = call.groups.getById()[0]['id']
- def function(number=0):
- response = call.messages.getConversations(filter='all', count=200, offset=number)
- for i in response['items']:
- print(i['conversation']['peer']['id'])
- if len(response['items']) == 200:
- number += 200
- function(number)
- function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement