Update API scheme on layer 206.

This commit is contained in:
John Preston
2025-06-16 15:02:30 +04:00
parent 0473374d51
commit 8dbc175c02
14 changed files with 132 additions and 61 deletions
@@ -183,10 +183,7 @@ void SaveDefaultRestrictions(
const auto requestId = api->request(
MTPmessages_EditChatDefaultBannedRights(
peer->input,
MTP_chatBannedRights(
MTP_flags(
MTPDchatBannedRights::Flags::from_raw(uint32(rights))),
MTP_int(0)))
RestrictionsToMTP({ rights, 0 }))
).done([=](const MTPUpdates &result) {
api->clearModifyRequest(key);
api->applyUpdates(result);