Skip to content

Commit

Permalink
fix: link preview option
Browse files Browse the repository at this point in the history
  • Loading branch information
elianiva committed Jan 15, 2024
1 parent df5d1ad commit 0345640
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/presentation/TelegramPresenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export class TelegramPresenter implements IPresenter {
try {
await this._bot.api.sendMessage(info[0]!.targetId.toString(), message, {
parse_mode: "HTML",
disable_web_page_preview: true
link_preview_options: {
is_disabled: true
}
});
} catch (err: unknown) {
if (err instanceof Error) {
Expand Down

0 comments on commit 0345640

Please sign in to comment.