Skip to content

Commit

Permalink
youtube: Disable link preview on edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Jun 19, 2024
1 parent 6b8599c commit b7763f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/youtube/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
}

Expand Down

0 comments on commit b7763f9

Please sign in to comment.