broadcast should also send message to owner

This commit is contained in:
c9s 2021-11-25 16:22:20 +08:00
parent fc81f7b6cb
commit 032b62e4e1

View File

@ -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 {