mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
telegramnotifier: support broadcast flag
This commit is contained in:
parent
77e7f814d9
commit
2b17124d06
|
@ -85,8 +85,15 @@ func (n *Notifier) NotifyTo(channel string, obj interface{}, args ...interface{}
|
|||
|
||||
}
|
||||
|
||||
n.interaction.SendToOwner(message)
|
||||
for _, text := range texts {
|
||||
n.interaction.SendToOwner(text)
|
||||
if n.broadcast {
|
||||
n.interaction.Broadcast(message)
|
||||
for _, text := range texts {
|
||||
n.interaction.Broadcast(text)
|
||||
}
|
||||
} else {
|
||||
n.interaction.SendToOwner(message)
|
||||
for _, text := range texts {
|
||||
n.interaction.SendToOwner(text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user