From c55983fd53e2499b02f107abf2fc3f721b7fa34c Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 14 Mar 2024 13:20:21 +0300 Subject: [PATCH] save initial formating while editing --- main.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.mjs b/main.mjs index c4c3915..9180aa5 100644 --- a/main.mjs +++ b/main.mjs @@ -41,10 +41,11 @@ bot.on("channel_post", (msg) => { taskEither.tryCatch( () => bot.editMessageText( - msg.text + "\n\nYandexGpt:\n\n" + res, + msg.text + "\n\nYandexGPT:\n\n" + res, { chat_id: (msg.forward_from_chat ?? msg.chat).id, message_id: msg.forward_from_message_id ?? msg.message_id, + entities: msg.entities, }, ), String,