mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
apply broadcast option from config file
This commit is contained in:
parent
6c46c2cad1
commit
f5f96b585a
|
@ -605,7 +605,13 @@ func (environ *Environment) ConfigureNotificationSystem(userConfig *Config) erro
|
||||||
|
|
||||||
go interaction.Start(session)
|
go interaction.Start(session)
|
||||||
|
|
||||||
var notifier = telegramnotifier.New(interaction)
|
var opts []telegramnotifier.Option
|
||||||
|
|
||||||
|
if userConfig.Notifications != nil && userConfig.Notifications.Telegram != nil {
|
||||||
|
opts = append(opts, telegramnotifier.UseBroadcast())
|
||||||
|
}
|
||||||
|
|
||||||
|
var notifier = telegramnotifier.New(interaction, opts...)
|
||||||
environ.Notifiability.AddNotifier(notifier)
|
environ.Notifiability.AddNotifier(notifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user