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

Method fail

Telegram/SourceFiles/export/export_api_wrap.cpp:317–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316template <typename Request>
317auto ApiWrap::RequestBuilder<Request>::fail(
318 Fn<bool(const MTP::Error &)> &&handler
319) -> RequestBuilder& {
320 if (handler) {
321 [[maybe_unused]] auto &silence_warning = _builder.fail([
322 common = base::take(_commonFailHandler),
323 specific = std::move(handler)
324 ](const MTP::Error &error) {
325 if (!specific(error)) {
326 common(error);
327 }
328 });
329 }
330 return *this;
331}
332
333template <typename Request>
334mtpRequestId ApiWrap::RequestBuilder<Request>::send() {

Callers 8

sendMethod · 0.45
fileRequestMethod · 0.45
startMainSessionMethod · 0.45
requestContactsMethod · 0.45
requestChatMessagesMethod · 0.45
resolveCustomEmojiMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected