D
D
da_da_ya_neudachnik2022-03-11 17:54:43
JavaScript
da_da_ya_neudachnik, 2022-03-11 17:54:43

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

1 answer(s)
D
defriz, 2022-03-11
@da_da_ya_neudachnik

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 question

Ask a Question

731 491 924 answers to any question