diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-06-05 20:22:07 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-06-05 20:22:07 +0500 |
commit | 566fa4ee9122cbb51b35c922fc0b0f8e609478d0 (patch) | |
tree | c38e2805c063533cc22a4848d04d21dad6d3b459 /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | a988d6727c150db41c5bfb222190d147b98f3b68 (diff) |
VKontakte:
update VKAPI_VER to 5.65
version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index f3a28c6e21..de58a36653 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -23,7 +23,9 @@ void CVkProto::RetrievePollingInfo() if (!IsOnline())
return;
Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/messages.getLongPollServer.json", true, &CVkProto::OnReceivePollingInfo, AsyncHttpRequest::rpHigh)
- << INT_PARAM("use_ssl", 1));
+ << INT_PARAM("use_ssl", 1)
+ << INT_PARAM("lp_version", 2)
+ );
}
void CVkProto::OnReceivePollingInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
@@ -196,7 +198,7 @@ int CVkProto::PollServer() debugLogA("CVkProto::PollServer (online)");
int iPollConnRetry = MAX_RETRIES;
NETLIBHTTPREQUEST *reply;
- CMStringA szReqUrl(FORMAT, "https://%s?act=a_check&key=%s&ts=%s&wait=25&access_token=%s&mode=%d", m_pollingServer, m_pollingKey, m_pollingTs, m_szAccessToken, 106);
+ CMStringA szReqUrl(FORMAT, "https://%s?act=a_check&key=%s&ts=%s&wait=25&access_token=%s&mode=%d&version=%d", m_pollingServer, m_pollingKey, m_pollingTs, m_szAccessToken, 106, 2);
// see mode parametr description on https://vk.com/dev/using_longpoll (Russian version)
NETLIBHTTPREQUEST req = {};
req.cbSize = sizeof(req);
|