I
I
Ilya Bugaets2020-06-14 20:26:57
Python
Ilya Bugaets, 2020-06-14 20:26:57

How to use messages.getHistory in a conversation?

What is the correct way to use messages.getHistory(vk_api) in a conversation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Guerro69, 2020-06-20
@ilyabugaets

From the side of the group (through the token), this method was removed, it can only be used through the page

V
Vlad Tanashchuk, 2020-06-14
@Xaeruz

#Групповой бот:
msg_history = vk.method("messages.getHistory", {"peer_id": peer_id})
#Страничный бот:
msg_history = vk.messages.getHistory(peer_id=peer_id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question