Skip to content

Commit

Permalink
fix: use LinkPreviewOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed May 30, 2024
1 parent d188868 commit 1e8539a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ func deletePriceagentHandler(bot *gotgbot.Bot, ctx *ext.Context) error {

editText := fmt.Sprintf("Preisagent für %s wurde gelöscht!", bold(createLink(priceagent.EntityURL(), priceagent.Entity.Name)))

_, _, err := cbq.Message.EditText(bot, editText, &gotgbot.EditMessageTextOpts{ParseMode: "HTML", DisableWebPagePreview: true})
_, _, err := cbq.Message.EditText(bot, editText, &gotgbot.EditMessageTextOpts{ParseMode: "HTML", LinkPreviewOptions: &gotgbot.LinkPreviewOptions{
IsDisabled: true,
}})
if err != nil {
return fmt.Errorf("deletePriceagentHandler: failed to edit message text: %w", err)
}
Expand Down

0 comments on commit 1e8539a

Please sign in to comment.