mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
show broadcast enabled
This commit is contained in:
parent
032b62e4e1
commit
9a589bf71c
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user