use one newline after YandexGPT
This commit is contained in:
parent
c55983fd53
commit
d51b133b8e
3 changed files with 3 additions and 3 deletions
2
bot.nix
2
bot.nix
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgs.buildNpmPackage {
|
pkgs.buildNpmPackage {
|
||||||
pname = "yandexgpt_tg_bot";
|
pname = "yandexgpt_tg_bot";
|
||||||
version = "0.1.0";
|
version = "0.1.2";
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
|
|
2
main.mjs
2
main.mjs
|
@ -41,7 +41,7 @@ bot.on("channel_post", (msg) => {
|
||||||
taskEither.tryCatch(
|
taskEither.tryCatch(
|
||||||
() =>
|
() =>
|
||||||
bot.editMessageText(
|
bot.editMessageText(
|
||||||
msg.text + "\n\nYandexGPT:\n\n" + res,
|
msg.text + "\n\nYandexGPT:\n" + res,
|
||||||
{
|
{
|
||||||
chat_id: (msg.forward_from_chat ?? msg.chat).id,
|
chat_id: (msg.forward_from_chat ?? msg.chat).id,
|
||||||
message_id: msg.forward_from_message_id ?? msg.message_id,
|
message_id: msg.forward_from_message_id ?? msg.message_id,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "yandexgpt_tg_bot",
|
"name": "yandexgpt_tg_bot",
|
||||||
"version": "0.1.0",
|
"version": "0.1.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./main.mjs",
|
"main": "./main.mjs",
|
||||||
|
|
Reference in a new issue