| 360 | } |
| 361 | |
| 362 | void 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 | |
| 372 | void ApiWrap::checkFilterInvite( |
| 373 | const QString &slug, |
no test coverage detected