Skip to content

Commit

Permalink
chore: update telegramify-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
niracler committed Nov 30, 2024
1 parent f9a174a commit 0000514
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"hono": "^4.6.5",
"oauth-1.0a": "^2.2.6",
"openai": "^4.66.1",
"telegramify-markdown": "git+ssh://[email protected]/niracler/telegramify-markdown.git#master"
"telegramify-markdown": "^1.2.2"
}
}
28 changes: 7 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function sendReplyToTelegram(chatId: number, text: string, messageId: numb
if (!text) return;
const bot = new Bot(env.TELEGRAM_BOT_SECRET);
try {
await bot.api.sendMessage(chatId, telegramifyMarkdown(text), {
await bot.api.sendMessage(chatId, telegramifyMarkdown(text, "keep"), {
reply_to_message_id: messageId,
parse_mode: 'MarkdownV2',
});
Expand Down

0 comments on commit 0000514

Please sign in to comment.