diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 066f5642..848cc8ab 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3197,10 +3197,10 @@ changeChatReportSpamState chat_id:int53 is_spam_chat:Bool = Ok; reportChat chat_id:int53 reason:ChatReportReason message_ids:vector = Ok; -//@description Returns storage usage statistics @chat_limit Maximum number of chats with the largest storage usage for which separate statistics should be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0 +//@description Returns storage usage statistics. Can be called before authorization @chat_limit Maximum number of chats with the largest storage usage for which separate statistics should be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0 getStorageStatistics chat_limit:int32 = StorageStatistics; -//@description Quickly returns approximate storage usage statistics +//@description Quickly returns approximate storage usage statistics. Can be called before authorization getStorageStatisticsFast = StorageStatisticsFast; //@description Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 0ca73cab..a8e3234d 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -3275,6 +3275,8 @@ bool Td::is_preauthentication_request(int32 id) { case td_api::getNetworkStatistics::ID: case td_api::addNetworkStatistics::ID: case td_api::resetNetworkStatistics::ID: + case td_api::getStorageStatistics::ID: + case td_api::getStorageStatisticsFast::ID: case td_api::getCountryCode::ID: case td_api::getDeepLinkInfo::ID: case td_api::addProxy::ID: diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 5be00a6b..bdf76796 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -759,6 +759,9 @@ class CliClient final : public Actor { td_api::make_object(0.001 + 1000 * (i / 2))); } + send_request(td_api::make_object(10)); + send_request(td_api::make_object()); + send_request(td_api::make_object( "@telegram /test_command https://telegram.org telegram.me @gif @test"));