mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
notifier/telegramnotifier: check chats map
This commit is contained in:
parent
5f4239d108
commit
d1cfaec7d3
|
@ -120,6 +120,9 @@ func (n *Notifier) NotifyTo(channel string, obj interface{}, args ...interface{}
|
|||
}
|
||||
|
||||
func (n *Notifier) AddChat(c *telebot.Chat) {
|
||||
if n.Chats == nil {
|
||||
n.Chats = make(map[int64]*telebot.Chat)
|
||||
}
|
||||
n.Chats[c.ID] = c
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user