L
L
Leks22018-12-14 18:56:16
Java
Leks2, 2018-12-14 18:56:16

How to send a message to a VK api group?

Good evening, I'm trying to send a message to a group via Api Vk Android, but the message is not sent, there is authorization, the group's wall is open

vkParametersMess = VKParameters.from(
                        VKApiConst.GROUP_ID, 111111111,
                        VKApiConst.MESSAGE, "Всем привет");


        VKRequest mess = new VKRequest("messages.send",vkParametersMess);


                mess.executeWithListener(new VKRequestListener() {
                    @Override
                    public void onComplete(VKResponse response) {
                        super.onComplete(response);

                        Log.i("VK", "Отправлено сообщение ");

                    }
                });


            }
        });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question