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

Method updateAccountTTL

Telegram/SourceFiles/api/api_self_destruct.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void SelfDestruct::updateAccountTTL(int days) {
53 _api.request(_accountTTL.requestId).cancel();
54 _accountTTL.requestId = _api.request(MTPaccount_SetAccountTTL(
55 MTP_accountDaysTTL(MTP_int(days))
56 )).done([=] {
57 _accountTTL.requestId = 0;
58 }).fail([=] {
59 _accountTTL.requestId = 0;
60 }).send();
61 _accountTTL.days = days;
62}
63
64void SelfDestruct::updateDefaultHistoryTTL(TimeId period) {
65 _api.request(_defaultHistoryTTL.requestId).cancel();

Callers 1

showContentMethod · 0.80

Calls 6

MTP_intFunction · 0.50
cancelMethod · 0.45
requestMethod · 0.45
sendMethod · 0.45
failMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected