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

Function DeleteStickerSet

Telegram/SourceFiles/api/api_stickers_creator.cpp:328–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void DeleteStickerSet(
329 not_null<Main::Session*> session,
330 const StickerSetIdentifier &set,
331 Fn<void()> done,
332 Fn<void(QString)> fail) {
333 session->api().request(MTPstickers_DeleteStickerSet(
334 Data::InputStickerSet(set))
335 ).done([=] {
336 session->data().stickers().notifyUpdated(
337 Data::StickersType::Stickers);
338 if (done) {
339 done();
340 }
341 }).fail([=](const MTP::Error &error) {
342 if (fail) {
343 fail(error.type());
344 }
345 }).send();
346}
347
348StickerUpload::StickerUpload(
349 not_null<Main::Session*> session,

Callers 1

updateButtonsMethod · 0.85

Calls 10

InputStickerSetFunction · 0.85
apiMethod · 0.80
sendMethod · 0.45
failMethod · 0.45
doneMethod · 0.45
requestMethod · 0.45
notifyUpdatedMethod · 0.45
stickersMethod · 0.45
dataMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected