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

Update API scheme to layer 150.

This commit is contained in:
John Preston
2022-11-25 16:57:09 +01:00
parent 39f9fee22f
commit d89573bab5
12 changed files with 54 additions and 15 deletions

View File

@@ -592,8 +592,10 @@ void GroupInfoBox::createGroup(
return;
}
_creationRequestId = _api.request(MTPmessages_CreateChat(
MTP_flags(0),
MTP_vector<TLUsers>(inputs),
MTP_string(title)
MTP_string(title),
MTPint() // ttl_period
)).done([=](const MTPUpdates &result) {
auto image = _photo->takeResultImage();
const auto navigation = _navigation;
@@ -683,7 +685,8 @@ void GroupInfoBox::createChannel(
MTP_string(title),
MTP_string(description),
MTPInputGeoPoint(), // geo_point
MTPstring() // address
MTPstring(), // address
MTPint() // ttl_period
)).done([=](const MTPUpdates &result) {
_navigation->session().api().applyUpdates(result);