show broadcast enabled

This commit is contained in:
c9s 2021-11-25 18:49:29 +08:00
parent 032b62e4e1
commit 9a589bf71c
2 changed files with 2 additions and 1 deletions

View File

@ -608,6 +608,7 @@ func (environ *Environment) ConfigureNotificationSystem(userConfig *Config) erro
var opts []telegramnotifier.Option
if userConfig.Notifications != nil && userConfig.Notifications.Telegram != nil {
log.Infof("telegram broadcast is enabled")
opts = append(opts, telegramnotifier.UseBroadcast())
}

View File

@ -115,7 +115,7 @@ 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 {