Don't log updateOption for bots.

This commit is contained in:
levlam 2024-01-24 14:40:56 +03:00
parent 5bbfc1cf5d
commit 0c0c24e7d0

View File

@ -3941,18 +3941,11 @@ void Td::send_update(tl_object_ptr<td_api::Update> &&object) {
<< ", count = " << sticker_sets->sets_.size() << " }";
break;
}
case td_api::updateAnimatedEmojiMessageClicked::ID / 2:
case td_api::updateOption::ID / 2:
case td_api::updateChatReadInbox::ID / 2:
case td_api::updateUnreadMessageCount::ID / 2:
case td_api::updateUnreadChatCount::ID / 2:
case td_api::updateChatOnlineMemberCount::ID / 2:
case td_api::updateChatAction::ID / 2:
case td_api::updateChatFolders::ID / 2:
case td_api::updateChatPosition::ID / 2:
case td_api::updateFileAddedToDownloads::ID / 2:
case td_api::updateFileDownload::ID / 2:
case td_api::updateFileRemovedFromDownloads::ID / 2:
case td_api::updateOption::ID:
if (auth_manager_ == nullptr || !auth_manager_->is_bot()) {
VLOG(td_requests) << "Sending update: " << to_string(object);
}
break;
case td_api::updateDefaultReactionType::ID / 2:
LOG(ERROR) << "Sending update: " << oneline(to_string(object));
break;