diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-08-05 11:43:14 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-08-05 11:43:14 +0000 |
commit | 8074aab3090c5699e41a8bc219dfb07e7e782790 (patch) | |
tree | ef08faf5af2911cc2d3e5a2a21eff4f5943de042 | |
parent | 5f310e19fd9b3ab199682fda1e4874e1fc2cc158 (diff) |
VKontakte: small fix for send message to vk-group
git-svn-id: http://svn.miranda-ng.org/main/trunk@17160 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index a805c7f14f..48b4be85f8 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -56,7 +56,7 @@ int CVkProto::SendMsg(MCONTACT hContact, int, const char *szMsg) ULONG uMsgId = ::InterlockedIncrement(&m_msgId);
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/method/messages.send.json", true, bIsChat? &CVkProto::OnSendChatMsg : &CVkProto::OnSendMessage, AsyncHttpRequest::rpHigh)
- << INT_PARAM(bIsChat ? "chat_id" : "user_id", iUserID)
+ << INT_PARAM(bIsChat ? "chat_id" : "peer_id", iUserID)
<< INT_PARAM("random_id", ((LONG) time(NULL)) * 100 + uMsgId % 100);
pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded");
|