From 032b62e4e18eb1c7cf1ac7f402f64c3abd496db0 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 25 Nov 2021 16:22:20 +0800 Subject: [PATCH] broadcast should also send message to owner --- pkg/notifier/telegramnotifier/interaction.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/notifier/telegramnotifier/interaction.go b/pkg/notifier/telegramnotifier/interaction.go index b20a913ee..60090010b 100644 --- a/pkg/notifier/telegramnotifier/interaction.go +++ b/pkg/notifier/telegramnotifier/interaction.go @@ -114,6 +114,8 @@ func (it *Interaction) HandleInfo(m *telebot.Message) { } func (it *Interaction) Broadcast(message string) { + it.SendToOwner(message) + for chatID := range it.session.Chats { chat, err := it.bot.ChatByID(strconv.FormatInt(chatID, 10)) if err != nil {