From 5b676ca4757906f0139890e96079a5367b3ae557 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 19 Dec 2019 19:22:38 +0300 Subject: [PATCH] Add unix_time option to response of getCurrentState. GitOrigin-RevId: 22c4b887b3f5681d0d673510d4e45cde8327b4d0 --- td/telegram/Td.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 4f53c3a4..0e10e0c2 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -4981,10 +4981,12 @@ void Td::on_request(uint64 id, td_api::confirmQrCodeAuthentication &request) { void Td::on_request(uint64 id, const td_api::getCurrentState &request) { vector> updates; - updates.push_back(td_api::make_object( - "version", td_api::make_object(TDLIB_VERSION))); updates.push_back( td_api::make_object("online", make_tl_object(is_online_))); + updates.push_back(td_api::make_object( + "unix_time", make_tl_object(G()->unix_time()))); + updates.push_back(td_api::make_object( + "version", td_api::make_object(TDLIB_VERSION))); for (auto &option : G()->shared_config().get_options()) { if (!is_internal_config_option(option.first)) { updates.push_back(td_api::make_object(