From 19a7da41b23c9275efcf8c6f94e85a510a8ab5ee Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 14 Nov 2023 19:22:17 +0300 Subject: [PATCH] Improve error message. --- telegram-bot-api/Client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index ff797a1..f9a0ca6 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -13173,7 +13173,9 @@ void Client::drop_internal_reply_to_message_in_another_chat(object_ptrchat_id_; if (reply_in_chat_id != message->chat_id_ && reply_to->origin_ == nullptr) { LOG(ERROR) << "Drop reply to message " << message->id_ << " in chat " << message->chat_id_ - << " from another chat " << reply_in_chat_id; + << " from another chat " << reply_in_chat_id << " sent at " << message->date_ + << " and originally sent at " + << (message->forward_info_ != nullptr ? message->forward_info_->date_ : -1); message->reply_to_ = nullptr; } }