Improve method name.

This commit is contained in:
levlam 2021-11-24 14:03:35 +03:00
parent 8f33f96e8c
commit fd71b62045
4 changed files with 4 additions and 4 deletions

View File

@ -5377,7 +5377,7 @@ terminateAllOtherSessions = Ok;
toggleSessionCanAcceptSecretChats session_id:int64 can_accept_secret_chats:Bool = Ok;
//@description Changes the period of inactivity after which sessions will automatically be terminated @inactive_session_ttl_days New number of days of inactivity before sessions will be automatically terminated; 1-366 days
setInactiveSessionsTtl inactive_session_ttl_days:int32 = Ok;
setInactiveSessionTtl inactive_session_ttl_days:int32 = Ok;
//@description Returns all website where the current user used Telegram to log in

View File

@ -4796,7 +4796,7 @@ void Td::on_request(uint64 id, const td_api::toggleSessionCanAcceptSecretChats &
std::move(promise));
}
void Td::on_request(uint64 id, const td_api::setInactiveSessionsTtl &request) {
void Td::on_request(uint64 id, const td_api::setInactiveSessionTtl &request) {
CHECK_IS_USER();
CREATE_OK_REQUEST_PROMISE();
set_inactive_session_ttl_days(this, request.inactive_session_ttl_days_, std::move(promise));

View File

@ -482,7 +482,7 @@ class Td final : public Actor {
void on_request(uint64 id, const td_api::toggleSessionCanAcceptSecretChats &request);
void on_request(uint64 id, const td_api::setInactiveSessionsTtl &request);
void on_request(uint64 id, const td_api::setInactiveSessionTtl &request);
void on_request(uint64 id, const td_api::getConnectedWebsites &request);

View File

@ -2254,7 +2254,7 @@ class CliClient final : public Actor {
get_args(args, session_id, can_accept_secret_chats);
send_request(td_api::make_object<td_api::toggleSessionCanAcceptSecretChats>(session_id, can_accept_secret_chats));
} else if (op == "sist") {
send_request(td_api::make_object<td_api::setInactiveSessionsTtl>(to_integer<int32>(args)));
send_request(td_api::make_object<td_api::setInactiveSessionTtl>(to_integer<int32>(args)));
} else if (op == "gcw") {
send_request(td_api::make_object<td_api::getConnectedWebsites>());
} else if (op == "dw") {