2024-08-13 04:53:07 +03:00
|
|
|
import { join } from 'node:path'
|
|
|
|
import * as url from 'node:url'
|
2023-10-16 19:23:53 +03:00
|
|
|
|
2024-08-18 09:31:23 +03:00
|
|
|
export const __dirname: string = url.fileURLToPath(new URL('.', import.meta.url))
|
2021-11-23 00:03:59 +03:00
|
|
|
|
2024-08-18 09:31:23 +03:00
|
|
|
export const DOC_CACHE_FILE: string = join(__dirname, '../data/documentation.cache.json')
|
|
|
|
export const DESCRIPTIONS_YAML_FILE: string = join(__dirname, '../data/descriptions.yaml')
|
|
|
|
export const API_SCHEMA_JSON_FILE: string = join(__dirname, '../api-schema.json')
|
|
|
|
export const API_SCHEMA_DIFF_JSON_FILE: string = join(__dirname, '../diff.json')
|
|
|
|
export const MTP_SCHEMA_JSON_FILE: string = join(__dirname, '../mtp-schema.json')
|
|
|
|
export const ERRORS_JSON_FILE: string = join(__dirname, '../raw-errors.json')
|
|
|
|
export const APP_CONFIG_JSON_FILE: string = join(__dirname, '../app-config.json')
|
2025-01-25 07:49:49 +03:00
|
|
|
export const COMPAT_TL_FILE: string = join(__dirname, '../data/compat.tl')
|
2021-11-23 00:03:59 +03:00
|
|
|
|
2022-04-01 22:17:10 +03:00
|
|
|
export const CORE_DOMAIN = 'https://core.telegram.org'
|
2022-08-12 16:16:44 +03:00
|
|
|
export const COREFORK_DOMAIN = 'https://corefork.telegram.org'
|
|
|
|
export const BLOGFORK_DOMAIN = 'https://blogfork.telegram.org'
|
2021-11-23 00:03:59 +03:00
|
|
|
|
2024-08-13 04:53:07 +03:00
|
|
|
export const TDESKTOP_SCHEMA
|
|
|
|
= 'https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/SourceFiles/mtproto/scheme/api.tl'
|
|
|
|
export const TDESKTOP_LAYER
|
|
|
|
= 'https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/SourceFiles/mtproto/scheme/layer.tl'
|
2023-09-24 01:32:22 +03:00
|
|
|
export const TDLIB_SCHEMA = 'https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/telegram_api.tl'
|
2024-03-07 05:46:04 +03:00
|
|
|
export const WEBK_SCHEMA = 'https://raw.githubusercontent.com/morethanwords/tweb/master/src/scripts/in/schema.json'
|
|
|
|
export const WEBA_SCHEMA = 'https://raw.githubusercontent.com/Ajaxy/telegram-tt/master/src/lib/gramjs/tl/static/api.tl'
|
2025-01-22 09:33:24 +03:00
|
|
|
export const WEBA_LAYER = 'https://raw.githubusercontent.com/Ajaxy/telegram-tt/master/src/lib/gramjs/tl/AllTLObjects.ts'
|
2021-11-23 00:03:59 +03:00
|
|
|
|
|
|
|
export const ESM_PRELUDE = `// This file is auto-generated. Do not edit.
|
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
`
|
2025-01-25 07:49:49 +03:00
|
|
|
|
|
|
|
export const TYPES_FOR_COMPAT: string[] = [
|
|
|
|
'message',
|
|
|
|
'messageService',
|
|
|
|
'channel',
|
|
|
|
'channelFull',
|
|
|
|
'chat',
|
|
|
|
'chatFull',
|
|
|
|
'user',
|
|
|
|
'userFull',
|
|
|
|
]
|