mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-21 17:37:48 +00:00
Compare commits
4 Commits
73de846fc9
...
5b4bdec9e1
Author | SHA1 | Date | |
---|---|---|---|
|
5b4bdec9e1 | ||
|
cc83909b80 | ||
|
01ee58bd27 | ||
|
f1646e0b0f |
@ -2,7 +2,8 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Telegram Bot API server build instructions</title>
|
||||
<title>Telegram Bot API server build instructions</title>
|
||||
<link rel="icon" type="image/svg+xml" sizes="16x16|any" href="https://telegram.org/img/t_logo.svg"/>
|
||||
<style>
|
||||
:root {
|
||||
--background: #fafafa;
|
||||
|
@ -6666,7 +6666,7 @@ void Client::check_business_connection_chat_id(const td::string &business_connec
|
||||
}
|
||||
auto chat_id = r_chat_id.move_as_ok();
|
||||
check_business_connection(business_connection_id, std::move(query),
|
||||
[this, chat_id, on_success = std::move(on_success)](
|
||||
[chat_id, on_success = std::move(on_success)](
|
||||
const BusinessConnection *business_connection, PromisedQueryPtr query) mutable {
|
||||
on_success(business_connection, chat_id, std::move(query));
|
||||
});
|
||||
|
@ -23,6 +23,9 @@ ServerCpuStat::ServerCpuStat() {
|
||||
void ServerCpuStat::update(double now) {
|
||||
auto r_cpu_stat = td::cpu_stat();
|
||||
if (r_cpu_stat.is_error()) {
|
||||
if (r_cpu_stat.error().message() != "Not supported") {
|
||||
LOG(ERROR) << "Failed to get CPU statistics: " << r_cpu_stat.error();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user