Skip to content

Commit

Permalink
Add underscore to telegram markdown escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanik7 committed Jan 23, 2024
1 parent c6abd9c commit 338d5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const sendMessageParams = (

return {
chat_id: chat,
text: message.replace(/[-.+?^$[\](){}\\!]/g, "\\$&"),
text: message.replace(/[-.+?^$[\](){}\\!_]/g, "\\$&"),
disable_web_page_preview: true,
parse_mode: "MarkdownV2",
reply_markup: {
Expand Down

0 comments on commit 338d5f8

Please sign in to comment.