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

Method requestStoriesCount

Telegram/SourceFiles/export/export_api_wrap.cpp:540–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540void ApiWrap::requestStoriesCount() {
541 Expects(_startProcess != nullptr);
542
543 mainRequest(MTPstories_GetStoriesArchive(
544 MTP_inputPeerSelf(),
545 MTP_int(0), // offset_id
546 MTP_int(0) // limit
547 )).done([=](const MTPstories_Stories &result) {
548 Expects(_settings != nullptr);
549 Expects(_startProcess != nullptr);
550
551 _startProcess->info.storiesCount = result.data().vcount().v;
552
553 sendNextStartRequest();
554 }).send();
555}
556
557void ApiWrap::requestProfileMusicCount() {
558 Expects(_startProcess != nullptr);

Callers

nothing calls this directly

Calls 4

MTP_intFunction · 0.50
sendMethod · 0.45
doneMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected