Skip to content

Latest commit

 

History

History
72 lines (40 loc) · 1.68 KB

README.md

File metadata and controls

72 lines (40 loc) · 1.68 KB

@telegram-auth/react

@telegram-auth/react

Table of contents

Interfaces

Functions

Functions

LoginButton

LoginButton(props): Element

A React component that renders a Telegram login button.

Parameters

Name Type Description
props LoginButtonProps The props to pass to the component.

Returns

Element

A React component that renders the Telegram login button.

See

https://core.telegram.org/widgets/login

Defined in

LoginButton.tsx:23


createScript

createScript(options): HTMLScriptElement

It creates a script tag with the right attributes to load the Telegram widget

Parameters

Name Type Description
options CreateScriptOptions The options to create the script.

Returns

HTMLScriptElement

A script element

See

https://core.telegram.org/widgets/login

Defined in

createScript.ts:11