@telegram-auth/react
Version:
React component to display Telegram Login Widget
11 lines • 540 B
TypeScript
import { CreateScriptOptions } from './types';
/**
* It creates a script tag with the right attributes to load the Telegram widget
*
* @see https://core.telegram.org/widgets/login
*
* @param {CreateScriptOptions} options - The options to create the script.
* @returns A script element
*/
export declare function createScript({ authCallbackUrl, botUsername, buttonSize, cornerRadius, lang, onAuthCallback, requestAccess, showAvatar, widgetVersion, }: CreateScriptOptions): HTMLScriptElement;
//# sourceMappingURL=createScript.d.ts.map