save initial formating while editing
This commit is contained in:
parent
12ca31135f
commit
c55983fd53
1 changed files with 2 additions and 1 deletions
3
main.mjs
3
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,
|
||||
|
|
Reference in a new issue