2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-08-22 01:49:24 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Serjan Nasredin
5b4bdec9e1
Merge f1646e0b0fe58c67086cb6e951cd192ea83ffe74 into cc83909b80b1bbc8eec8073fb4457c389ceefbe5 2024-12-07 06:37:20 +07:00
AYMENJD
cc83909b80 Fix warning. 2024-12-06 14:24:15 +03:00
levlam
01ee58bd27 Log if failed to get CPU statistics on supported platforms. 2024-12-04 17:31:44 +03:00
snxx-lppxx
f1646e0b0f Add Telegram's favicon 2022-01-27 18:45:16 +05:00
3 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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));
});

View File

@ -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;
}