Answer the question
In order to leave comments, you need to log in
Can't solve the problem with VK servers in Vk_api?
In general, I write a bot in python'e, I need it to fix the message, the bot is authorized for the user, but even this does not help, an error pops up:
vk_api.exceptions.ApiError: [10] Internal server error
if responsive == '/закрепи':
max_message = session_api.messages.getHistory(peer_id=event.peer_id)['count']
text = []
for i in range(0,max_message,200):
mess = session_api.messages.getHistory(peer_id=event.peer_id, count=200,offset=i)['items']
for element in mess:
if element.get('action') == None:
text.append( str(element['id']))
text = ','.join(text)
print(text)
message_id = text[0]
print(message_id)
session_api.messages.pin(peer_id=event.peer_id,message_id=message_id)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question