add disable_notification parameter (#99)

This commit is contained in:
vaaski
2021-04-03 00:38:16 +02:00
committed by GitHub
parent a91d132e3f
commit 6dbb4b1735
4 changed files with 42 additions and 1 deletions
+2
View File
@@ -88,6 +88,7 @@ type (
Socks5 string
DisableWebPagePreview bool
DisableNotification bool
}
// Plugin values.
@@ -365,6 +366,7 @@ func (p Plugin) Exec() (err error) {
msg := tgbotapi.NewMessage(user, txt)
msg.ParseMode = p.Config.Format
msg.DisableWebPagePreview = p.Config.DisableWebPagePreview
msg.DisableNotification = p.Config.DisableNotification
if err := p.Send(bot, msg); err != nil {
return err
}