mirror of
https://github.com/appleboy/drone-telegram.git
synced 2026-06-14 05:12:22 +08:00
add disable_notification parameter (#99)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user