bbgo: add telegram config

This commit is contained in:
c9s 2021-10-15 16:10:09 +08:00
parent a2c29f4519
commit 2b0793ee49

View File

@ -65,9 +65,15 @@ type SlackNotificationRouting struct {
PnL string `json:"pnL,omitempty" yaml:"pnL,omitempty"` PnL string `json:"pnL,omitempty" yaml:"pnL,omitempty"`
} }
type TelegramNotification struct {
Broadcast bool `json:"broadcast" yaml:"broadcast"`
}
type NotificationConfig struct { type NotificationConfig struct {
Slack *SlackNotification `json:"slack,omitempty" yaml:"slack,omitempty"` Slack *SlackNotification `json:"slack,omitempty" yaml:"slack,omitempty"`
Telegram *TelegramNotification `json:"telegram,omitempty" yaml:"telegram,omitempty"`
SymbolChannels map[string]string `json:"symbolChannels,omitempty" yaml:"symbolChannels,omitempty"` SymbolChannels map[string]string `json:"symbolChannels,omitempty" yaml:"symbolChannels,omitempty"`
SessionChannels map[string]string `json:"sessionChannels,omitempty" yaml:"sessionChannels,omitempty"` SessionChannels map[string]string `json:"sessionChannels,omitempty" yaml:"sessionChannels,omitempty"`