2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -693,7 +693,10 @@ void GroupInfoBox::createChannel(const QString &title, const QString &descriptio
}
_createdChannel = channel;
_creationRequestId = _api.request(MTPmessages_ExportChatInvite(
_createdChannel->input
MTP_flags(0),
_createdChannel->input,
MTPint(), // expire_date
MTPint() // usage_limit
)).done([=](const MTPExportedChatInvite &result) {
_creationRequestId = 0;
if (result.type() == mtpc_chatInviteExported) {