diff --git a/plugin/youtube/youtube.go b/plugin/youtube/youtube.go index a1c4578..ebf3e93 100644 --- a/plugin/youtube/youtube.go +++ b/plugin/youtube/youtube.go @@ -328,6 +328,9 @@ func (p *Plugin) OnYouTubeLink(b *gotgbot.Bot, c plugin.GobotContext) error { _, _, err = msg.EditText(b, modifiedText, &gotgbot.EditMessageTextOpts{ ParseMode: gotgbot.ParseModeHTML, + LinkPreviewOptions: &gotgbot.LinkPreviewOptions{ + IsDisabled: true, + }, }) }