TelegramPWA/src/lib/gramjs/tl/AllTLObjects.ts
2025-11-22 12:54:15 +01:00

18 lines
363 B
TypeScript

import { Api } from '.';
const tlobjects: Record<number, 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 const LAYER = 217;
export { tlobjects };