Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
643 B

(async function asd() {
const auth = 1;
const keys = ['dc', 'server_time_offset', 'xt_instance'];
for(let i = 1; i <= 5; ++i) {
keys.push(`dc${i}_server_salt`);
keys.push(`dc${i}_auth_key`);
}
const values = await Promise.all(keys.map(key => appStorage.get(key)));
keys.push('user_auth');
values.push(typeof(auth) === 'number' ? {dcID: values[0] || 2, id: auth} : auth);
let obj = {};
keys.forEach((key, idx) => {
obj[key] = values[idx];
});
window.exported = obj;
console.log(obj);
})();
copy(JSON.stringify(window.exported));
var obj = JSON.parse();
appStorage.set(obj);