@ton-hard-core/nest-twa
Version:
NestJS Telegram Web App Module
16 lines (15 loc) • 376 B
TypeScript
export type TelegramUser = Readonly<{
id: number;
isBot?: boolean;
firstName: string;
lastName?: string;
username?: string;
languageCode: string;
isPremium?: boolean;
addedToAttachmentMenu?: boolean;
allowsWriteToPm?: boolean;
photoUrl?: string;
}>;
export declare const TelegramUser: {
fromJSON: (json: string) => TelegramUser;
};