TelegramPWA/src/lib/gramjs/tl/AllTLObjects.ts
zubiden b6f927c99b Layer 224 (#6683)
Co-authored-by: Dmitry Kabanov <153344039+dmitrykabanovdev@users.noreply.github.com>
2026-02-22 23:49:11 +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 = 224;
export { tlobjects };