MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / checkChatInvite

Method checkChatInvite

Telegram/SourceFiles/apiwrap.cpp:362–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void ApiWrap::checkChatInvite(
363 const QString &hash,
364 FnMut<void(const MTPChatInvite &)> done,
365 Fn<void(const MTP::Error &)> fail) {
366 request(base::take(_checkInviteRequestId)).cancel();
367 _checkInviteRequestId = request(MTPmessages_CheckChatInvite(
368 MTP_string(hash)
369 )).done(std::move(done)).fail(std::move(fail)).handleFloodErrors().send();
370}
371
372void ApiWrap::checkFilterInvite(
373 const QString &slug,

Callers 1

CheckChatInviteFunction · 0.80

Calls 6

MTP_stringFunction · 0.85
handleFloodErrorsMethod · 0.80
cancelMethod · 0.45
sendMethod · 0.45
failMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected