tweb/src/lib/mtproto/mtproto_config.ts

31 lines
967 B
TypeScript
Raw Normal View History

export type UserAuth = number;
/*
IMPORTANT NOTICE
================
Do not publish your Webogram fork with my app credentials (below), or your application may be blocked.
You can get your own api_id, api_hash at https://my.telegram.org, see manual at https://core.telegram.org/api/obtaining_api_id.
*/
2020-04-26 14:19:17 +02:00
export const App = {
id: 1025907,
hash: '452b0359b988148995f22ff0f4229750',
2020-11-03 09:46:28 +01:00
version: '0.3.2',
2020-04-26 14:19:17 +02:00
domains: [] as string[],
baseDcID: 2
};
export const Modes = {
test: location.search.indexOf('test=1') > 0/* || true */,
debug: location.search.indexOf('debug=1') > 0,
http: false, //location.search.indexOf('http=1') > 0,
ssl: true, // location.search.indexOf('ssl=1') > 0 || location.protocol == 'https:' && location.search.indexOf('ssl=0') == -1,
2020-04-26 14:19:17 +02:00
multipleConnections: true
};
export const DEBUG = process.env.NODE_ENV != 'production';
export const MOUNT_CLASS_TO: any = DEBUG ? typeof(window) !== 'undefined' ? window : self : null;