Add unix_time read-only option.

GitOrigin-RevId: bf3c1248f14e216197e50d819d35609824260940
This commit is contained in:
levlam 2019-12-03 01:14:01 +03:00
parent ff1b4566f0
commit afbadb9741

View File

@ -6862,6 +6862,11 @@ void Td::on_request(uint64 id, td_api::getOption &request) {
option_value = make_tl_object<td_api::optionValueBoolean>(is_online_);
}
break;
case 'u':
if (request.name_ == "unix_time") {
option_value = make_tl_object<td_api::optionValueInteger>(G()->unix_time());
}
break;
case 'v':
if (request.name_ == "version") {
option_value = make_tl_object<td_api::optionValueString>(TDLIB_VERSION);