From b9667aae6bdd166d449fe3993b9e90906010f1a0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 24 May 2025 03:04:10 +0000 Subject: [PATCH] feat: better error for quoting a message from another chat --- src/chat.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index 0c5fa9792..115cf9403 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -2943,7 +2943,10 @@ async fn prepare_send_msg( if chat.typ != Chattype::Single && !context.get_config_bool(Config::Bot).await? { if let Some(quoted_message) = msg.quoted_message(context).await? { if quoted_message.chat_id != chat_id { - bail!("Bad quote reply"); + bail!( + "Quote of message from {} cannot be sent to {chat_id}", + quoted_message.chat_id + ); } } }