Answer the question
In order to leave comments, you need to log in
Getting conversation name vk api?
Guys, please tell me) I don’t understand something vk api: how to get the name of the conversation? What is Impict Flow? How can I add it to a group?
Answer the question
In order to leave comments, you need to log in
you can get a token from a group to create bots in the group settings -> working with API
, you can get the name of the conversation using the messages.getConversationsById method
example:
// vk - переменная Вашего колбека в коде, msg объект сообщения
vk.api.messages.getConversationsById({ peer_ids: msg.peerId, extended: 1, fields: 'chat_settings', group_id: /*положительное айди вашей группы*/ }).then((res) => { console.log(res[0].items.chat_settings.title) });
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question