2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme to layer 123.

This commit is contained in:
John Preston
2020-12-29 16:39:10 +04:00
parent b562a4a479
commit b396244606
9 changed files with 67 additions and 33 deletions

View File

@@ -2127,7 +2127,10 @@ void ApiWrap::exportInviteLink(not_null<PeerData*> peer) {
const auto requestId = [&] {
return request(MTPmessages_ExportChatInvite(
peer->input
MTP_flags(0),
peer->input,
MTPint(), // expire_date
MTPint() // usage_limit
)).done([=](const MTPExportedChatInvite &result) {
_exportInviteRequests.erase(peer);
const auto link = (result.type() == mtpc_chatInviteExported)