@@ -88,6 +88,12 @@ func migrateLegacyConfig(helper up.Helper) {
8888 bridgeconfig .CopyToOtherLocation (helper , up .Int , []string {"bridge" , "max_initial_member_sync" }, []string {"network" , "member_list" , "max_initial_sync" })
8989 bridgeconfig .CopyToOtherLocation (helper , up .Bool , []string {"bridge" , "sync_channel_members" }, []string {"network" , "member_list" , "sync_broadcast_channels" })
9090 bridgeconfig .CopyToOtherLocation (helper , up .Bool , []string {"bridge" , "skip_deleted_members" }, []string {"network" , "member_list" , "skip_deleted" })
91+ bridgeconfig .CopyToOtherLocation (helper , up .Str , []string {"telegram" , "proxy" , "type" }, []string {"network" , "proxy" , "type" })
92+ proxyAddress , _ := helper .Get (up .Str , "telegram" , "proxy" , "address" )
93+ proxyPort , _ := helper .Get (up .Int , "telegram" , "proxy" , "port" )
94+ helper .Set (up .Str , fmt .Sprintf ("%s:%s" , proxyAddress , proxyPort ), "network" , "proxy" , "address" )
95+ bridgeconfig .CopyToOtherLocation (helper , up .Str , []string {"telegram" , "proxy" , "username" }, []string {"network" , "proxy" , "username" })
96+ bridgeconfig .CopyToOtherLocation (helper , up .Str , []string {"telegram" , "proxy" , "password" }, []string {"network" , "proxy" , "password" })
9197 bridgeconfig .CopyToOtherLocation (helper , up .Int , []string {"bridge" , "max_member_count" }, []string {"network" , "max_member_count" })
9298 bridgeconfig .CopyToOtherLocation (helper , up .Int , []string {"bridge" , "sync_update_limit" }, []string {"network" , "sync" , "update_limit" })
9399 bridgeconfig .CopyToOtherLocation (helper , up .Int , []string {"bridge" , "sync_create_limit" }, []string {"network" , "sync" , "create_limit" })
0 commit comments