@dfsol/platform-detector
Version:
Universal platform detector for web, PWA, Telegram Mini Apps, and native mobile applications with Client Hints API, feature detection, and enhanced accuracy
7 lines • 541 B
TypeScript
import type { TelegramInitDataValidationOptions, TelegramInitDataValidationResult } from "./types.js";
/**
* Verify Telegram Mini App initData payload according to Telegram specs.
* Pure helper that can be plugged into a Hono handler or any server framework.
*/
export declare function verifyTelegramInitData(initData: string | URLSearchParams | null | undefined, botToken: string | null | undefined, options?: TelegramInitDataValidationOptions): Promise<TelegramInitDataValidationResult>;
//# sourceMappingURL=telegram-init-data.d.ts.map