2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Update API scheme on layer 134.

This commit is contained in:
John Preston
2021-10-27 09:55:59 +04:00
parent 94dc595a81
commit f839c7f2bb
2 changed files with 11 additions and 8 deletions

View File

@@ -113,7 +113,8 @@ void InviteLinks::performCreate(
| (requestApproval ? Flag::f_request_needed : Flag(0))),
peer->input,
MTP_int(expireDate),
MTP_int(usageLimit)
MTP_int(usageLimit),
MTPstring() // title
)).done([=](const MTPExportedChatInvite &result) {
const auto callbacks = _createCallbacks.take(peer);
const auto link = prepend(peer, peer->session().user(), result);
@@ -263,7 +264,8 @@ void InviteLinks::performEdit(
MTP_string(link),
MTP_int(expireDate),
MTP_int(usageLimit),
MTP_bool(requestApproval)
MTP_bool(requestApproval),
MTPstring() // title
)).done([=](const MTPmessages_ExportedChatInvite &result) {
const auto callbacks = _editCallbacks.take(key);
const auto peer = key.peer;