Allow to call getStorageStatistics before authorization.
GitOrigin-RevId: f801124c6e2646a165a1951598efcba71cc1cc38
This commit is contained in:
parent
2d05be04dd
commit
e1415facf2
@ -3197,10 +3197,10 @@ changeChatReportSpamState chat_id:int53 is_spam_chat:Bool = Ok;
|
||||
reportChat chat_id:int53 reason:ChatReportReason message_ids:vector<int53> = 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
|
||||
|
@ -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:
|
||||
|
@ -759,6 +759,9 @@ class CliClient final : public Actor {
|
||||
td_api::make_object<td_api::setAlarm>(0.001 + 1000 * (i / 2)));
|
||||
}
|
||||
|
||||
send_request(td_api::make_object<td_api::getStorageStatistics>(10));
|
||||
send_request(td_api::make_object<td_api::getStorageStatisticsFast>());
|
||||
|
||||
send_request(td_api::make_object<td_api::getTextEntities>(
|
||||
"@telegram /test_command https://telegram.org telegram.me @gif @test"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user