telegram.go 660 B

123456789
  1. package config
  2. type Telegram struct {
  3. BotToken string `mapstructure:"bot-token" json:"botToken" yaml:"bot-token"` // Bot Token
  4. WebhookURL string `mapstructure:"webhook-url" json:"webhookUrl" yaml:"webhook-url"` // Webhook URL (可选)
  5. Debug bool `mapstructure:"debug" json:"debug" yaml:"debug"` // 调试模式
  6. BindURL string `mapstructure:"bind-url" json:"bindUrl" yaml:"bind-url"` // 绑定页面URL
  7. PlatformAPIURL string `mapstructure:"platform-api-url" json:"platform-api-url" yaml:"platform-api-url"` // Vitiens平台API地址
  8. }