Answer the question
In order to leave comments, you need to log in
Page bot. The name of the VK conversations where there is a bot, how to get the names from the getConversations method and display them along with the arbors id?
elif msg.startswith("бот беседы") and event.user_id in admin_list:
if self.name == "я":
a = self.vk.messages.getConversations(count = 10)
conversation=[]
number = 1
for i in a['items']:
print(i['conversation']['peer']['id'] - 2000000000)
conversation.append(str(number)+") id "+str(i['conversation']['peer']['id'] - 2000000000))
number+= 1
if self.name == "я":
self.msg_send(
chat_id = event.chat_id,
msg = '\n'.join(conversation),
)
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