UNPKG

@telegram-apps/bridge

Version:

TypeScript package to provide communication layer between Mini App and Telegram application.

9 lines (8 loc) 347 B
/** * Creates a safe start parameter value. * @param value - value to create start parameter from. * @throws {Error} If the value length is too big for the allowed one. * @see Learn more about start parameter: * https://docs.telegram-mini-apps.com/platform/start-parameter */ export declare function createStartParam(value: string): string;