config: preserve spacing when rewriting config
This commit is contained in:
+11
-1
@@ -98,7 +98,17 @@ func upgradeConfig(helper up.Helper) {
|
||||
}
|
||||
|
||||
func (tg *TelegramConnector) GetConfig() (example string, data any, upgrader up.Upgrader) {
|
||||
return ExampleConfig, tg.Config, up.SimpleUpgrader(upgradeConfig)
|
||||
return ExampleConfig, tg.Config, &up.StructUpgrader{
|
||||
SimpleUpgrader: up.SimpleUpgrader(upgradeConfig),
|
||||
Blocks: [][]string{
|
||||
{"device_info"},
|
||||
{"animated_sticker"},
|
||||
{"member_list"},
|
||||
{"ping"},
|
||||
{"sync"},
|
||||
},
|
||||
Base: ExampleConfig,
|
||||
}
|
||||
}
|
||||
|
||||
func (tg *TelegramConnector) ValidateConfig() error {
|
||||
|
||||
Reference in New Issue
Block a user