Skip to content

Commit

Permalink
feat: disable link preview in telegram message
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokeyibb authored and Enter-tainer committed Aug 31, 2024
1 parent 90964d2 commit bc4cf28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudflare-workers/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export async function sendTelegramMessage(botToken: string, chatId: string, mess
chat_id: chatId,
text: message,
parse_mode: 'MarkdownV2',
link_preview_options: {
is_disabled: true,
},
}),
});

Expand Down

0 comments on commit bc4cf28

Please sign in to comment.