mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme on layer 158.
This commit is contained in:
@@ -382,11 +382,11 @@ void ApiWrap::checkChatInvite(
|
||||
|
||||
void ApiWrap::checkFilterInvite(
|
||||
const QString &slug,
|
||||
FnMut<void(const MTPcommunities_CommunityInvite &)> done,
|
||||
FnMut<void(const MTPchatlists_ChatlistInvite &)> done,
|
||||
Fn<void(const MTP::Error &)> fail) {
|
||||
request(base::take(_checkFilterInviteRequestId)).cancel();
|
||||
_checkFilterInviteRequestId = request(
|
||||
MTPcommunities_CheckCommunityInvite(MTP_string(slug))
|
||||
MTPchatlists_CheckChatlistInvite(MTP_string(slug))
|
||||
).done(std::move(done)).fail(std::move(fail)).send();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user