UNPKG

dograma

Version:

NodeJS/Browser MTProto API Telegram client library,

17 lines (13 loc) 347 B
export const LAYER = 145; import { Api } from "./"; const tlobjects: any = {}; for (const tl of Object.values(Api)) { if ("CONSTRUCTOR_ID" in tl) { tlobjects[tl.CONSTRUCTOR_ID] = tl; } else { for (const sub of Object.values(tl)) { tlobjects[sub.CONSTRUCTOR_ID] = sub; } } } export { tlobjects };