diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 04488f8..4d14538 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4948,7 +4948,7 @@ class Client::TdOnCheckUserCallback final : public TdQueryCallback { CHECK(result->get_id() == td_api::user::ID); auto user = move_object_as(result); auto user_info = client_->get_user_info(user->id_); - CHECK(user_info != nullptr); // it must have already been got through updates + CHECK(user_info != nullptr); // it must have already been received through updates client_->check_user_read_access(user_info, std::move(query_), std::move(on_success_)); } @@ -4995,7 +4995,7 @@ class Client::TdOnCheckChatCallback final : public TdQueryCallback { CHECK(result->get_id() == td_api::chat::ID); auto chat = move_object_as(result); auto chat_info = client_->get_chat(chat->id_); - CHECK(chat_info != nullptr); // it must have already been got through updates + CHECK(chat_info != nullptr); // it must have already been received through updates CHECK(chat_info->title == chat->title_); if (only_supergroup_ && chat_info->type != ChatInfo::Type::Supergroup) { return fail_query(400, "Bad Request: chat not found", std::move(query_)); @@ -5089,7 +5089,7 @@ class Client::TdOnResolveBotUsernameCallback final : public TdQueryCallback { CHECK(result->get_id() == td_api::chat::ID); auto chat = move_object_as(result); auto chat_info = client_->get_chat(chat->id_); - CHECK(chat_info != nullptr); // it must have already been got through updates + CHECK(chat_info != nullptr); // it must have already been received through updates if (chat_info->type != ChatInfo::Type::Private) { return client_->on_resolve_bot_username(username_, 0); } @@ -14303,7 +14303,7 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr(message->content_.get()); if (content->member_user_ids_.empty()) { - LOG(ERROR) << "Got empty messageChatAddMembers"; + LOG(ERROR) << "Receive empty messageChatAddMembers"; return true; } break; diff --git a/telegram-bot-api/HttpConnection.h b/telegram-bot-api/HttpConnection.h index 1a88ece..6deb86f 100644 --- a/telegram-bot-api/HttpConnection.h +++ b/telegram-bot-api/HttpConnection.h @@ -26,7 +26,7 @@ struct SharedData; class HttpConnection final : public td::HttpInboundConnection::Callback { public: - explicit HttpConnection(td::ActorId client_manager, std::shared_ptr shared_data) + HttpConnection(td::ActorId client_manager, std::shared_ptr shared_data) : client_manager_(client_manager), shared_data_(std::move(shared_data)) { } diff --git a/telegram-bot-api/WebhookActor.cpp b/telegram-bot-api/WebhookActor.cpp index a3f2777..46898e3 100644 --- a/telegram-bot-api/WebhookActor.cpp +++ b/telegram-bot-api/WebhookActor.cpp @@ -595,9 +595,9 @@ void WebhookActor::handle(td::unique_ptr response) { auto connection_id = get_link_token(); if (response) { - VLOG(webhook) << "Got response from connection " << connection_id; + VLOG(webhook) << "Receive response from connection " << connection_id; } else { - VLOG(webhook) << "Got hangup from connection " << connection_id; + VLOG(webhook) << "Receive hangup from connection " << connection_id; } auto *connection_ptr = connections_.get(connection_id); if (connection_ptr == nullptr) {