P
P
Pigeon12352019-07-17 18:35:24
In contact with
Pigeon1235, 2019-07-17 18:35:24

What method can I get the name of a conversation on VKontakte?

I'm making a VK bot on the VK-IO library and ran into a problem, I can't get the name of the conversation. Did it like this:

const MultiChat = await vk.api.messages.getConversationsById({
            peer_ids: msg.peerId
        });
        const ChatName = MultiChat.response.items.chat_settings.title;

Writes they say an error in the response or items

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-07-17
@Pigeon1235

const ChatName = MultiChat.items[0].chat_settings.title;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question