mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Update API scheme to layer 133.
This commit is contained in:
@@ -451,7 +451,7 @@ void AddSpecialBoxController::loadMoreRows() {
|
||||
const auto perPage = (_offset > 0)
|
||||
? kParticipantsPerPage
|
||||
: kParticipantsFirstPageCount;
|
||||
const auto participantsHash = 0;
|
||||
const auto participantsHash = uint64(0);
|
||||
const auto channel = _peer->asChannel();
|
||||
|
||||
_loadRequestId = _api.request(MTPchannels_GetParticipants(
|
||||
@@ -459,7 +459,7 @@ void AddSpecialBoxController::loadMoreRows() {
|
||||
MTP_channelParticipantsRecent(),
|
||||
MTP_int(_offset),
|
||||
MTP_int(perPage),
|
||||
MTP_int(participantsHash)
|
||||
MTP_long(participantsHash)
|
||||
)).done([=](const MTPchannels_ChannelParticipants &result) {
|
||||
_loadRequestId = 0;
|
||||
auto &session = channel->session();
|
||||
@@ -676,7 +676,7 @@ void AddSpecialBoxController::editAdminDone(
|
||||
MTP_flags(Flag::f_can_edit
|
||||
| (rank.isEmpty() ? Flag(0) : Flag::f_rank)),
|
||||
peerToBareMTPInt(user->id),
|
||||
MTPint(), // inviter_id
|
||||
MTPlong(), // inviter_id
|
||||
peerToBareMTPInt(alreadyPromotedBy
|
||||
? alreadyPromotedBy->id
|
||||
: user->session().userPeerId()),
|
||||
@@ -981,7 +981,7 @@ void AddSpecialBoxSearchController::requestParticipants() {
|
||||
// (because we've waited for search request by timer already,
|
||||
// so we don't expect it to be fast, but we want to fill cache).
|
||||
const auto perPage = kParticipantsPerPage;
|
||||
const auto participantsHash = 0;
|
||||
const auto participantsHash = uint64(0);
|
||||
const auto channel = _peer->asChannel();
|
||||
|
||||
_requestId = _api.request(MTPchannels_GetParticipants(
|
||||
@@ -989,7 +989,7 @@ void AddSpecialBoxSearchController::requestParticipants() {
|
||||
MTP_channelParticipantsSearch(MTP_string(_query)),
|
||||
MTP_int(_offset),
|
||||
MTP_int(perPage),
|
||||
MTP_int(participantsHash)
|
||||
MTP_long(participantsHash)
|
||||
)).done([=](
|
||||
const MTPchannels_ChannelParticipants &result,
|
||||
mtpRequestId requestId) {
|
||||
|
Reference in New Issue
Block a user