def do_syka it vk messages getHistory chat_id chat_id offset offset re

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
def do_syka():
it = vk('messages.getHistory', {
'chat_id': chat_id,
'offset': offset,
'rev': 1,
'v': "5.26",
'count': 200
})
if not 'response' in it:
time.sleep(4)
do_syka()
else:
return it['response']
x = do_syka()['items']