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.

35 lines
857 B

/*
* https://github.com/morethanwords/tweb
* Copyright (C) 2019-2021 Eduard Kuzmenko
* https://github.com/morethanwords/tweb/blob/master/LICENSE
*
* Originally from:
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/
import type { DcId } from "../types";
3 years ago
export const MAIN_DOMAIN = 'web.telegram.org';
4 years ago
const App = {
id: 1025907,
hash: '452b0359b988148995f22ff0f4229750',
3 years ago
version: '0.8.4',
langPackVersion: '0.3.3',
langPack: 'macos',
langPackCode: 'en',
3 years ago
domains: [MAIN_DOMAIN] as string[],
baseDcId: 2 as DcId,
3 years ago
isMainDomain: location.hostname === MAIN_DOMAIN,
suffix: 'K'
4 years ago
};
if(App.isMainDomain) { // use Webogram credentials then
App.id = 2496;
App.hash = '8da85b0d5bfe62527e5b244c209159c3';
}
4 years ago
export default App;