-
-
Save s3rgeym/d30eceaeb9aedf6b2ee68fbe5350eae6 to your computer and use it in GitHub Desktop.
Webogram credentials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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 {TrueDcId} from '../types'; | |
| export const MAIN_DOMAINS = ['web.telegram.org', 'webk.telegram.org']; | |
| export const DEFAULT_BACKGROUND_SLUG = 'pattern'; | |
| const threads = Math.min(4, navigator.hardwareConcurrency ?? 4); | |
| const App = { | |
| id: +import.meta.env.VITE_API_ID, | |
| hash: import.meta.env.VITE_API_HASH, | |
| pushServerKey: import.meta.env.VITE_PUSH_SERVER_KEY, | |
| version: import.meta.env.VITE_VERSION, | |
| versionFull: import.meta.env.VITE_VERSION_FULL, | |
| build: +import.meta.env.VITE_BUILD, | |
| langPackVersion: +import.meta.env.VITE_LANG_PACK_VERSION, | |
| langPackLocalVersion: +(import.meta.env.VITE_LANG_PACK_LOCAL_VERSION || 1), | |
| langPack: 'webk', | |
| langPackCode: 'en', | |
| domains: MAIN_DOMAINS, | |
| baseDcId: 2 as TrueDcId, | |
| isMainDomain: MAIN_DOMAINS.includes(location.hostname), | |
| suffix: 'K', | |
| threads, | |
| cryptoWorkers: threads, | |
| interclientBroadcastChannel: 'tgweb' | |
| }; | |
| if(App.isMainDomain) { // use Webogram credentials then | |
| App.id = 2496; | |
| App.hash = '8da85b0d5bfe62527e5b244c209159c3'; | |
| App.pushServerKey = 'BHEbKOXt-GD8MCTTYiAYT3I5R4MB0epIE7Tbbymj1uR0xJRE_7m27eXTVAC_P19TeZnO9413lRz-0oZ87JRPKPM'; | |
| } | |
| export default App; |
Author
s3rgeym
commented
Jan 16, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment