Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Latest commit

 

History

History
169 lines (94 loc) · 3.45 KB

File metadata and controls

169 lines (94 loc) · 3.45 KB

@telegram-auth/react / LoginButtonProps

Interface: LoginButtonProps

Hierarchy

Table of contents

Properties

Properties

botUsername

botUsername: string

The username of the bot that will be used to authenticate the user.

Defined in

types.ts:25


authCallbackUrl

Optional authCallbackUrl: string

The URL where the auth data from Telegram will be sent.

Defined in

types.ts:20


buttonSize

Optional buttonSize: "large" | "medium" | "small"

The size of the button.

Default

'large'

Defined in

types.ts:32


cornerRadius

Optional cornerRadius: number

The radius of the button corners.

Defined in

types.ts:37


lang

Optional lang: string

The language of the button.

Default

"en"

Defined in

types.ts:44


onAuthCallback

Optional onAuthCallback: (data: TelegramAuthData) => void

The callback function that will be called when the user is authenticated.

Type declaration

▸ (data): void

Parameters
Name Type
data TelegramAuthData
Returns

void

Defined in

types.ts:49


requestAccess

Optional requestAccess: null | "write"

The access level that the bot will request.

Default

"write"

Defined in

types.ts:56


showAvatar

Optional showAvatar: boolean

Whether to show the user's avatar.

Default

true

Defined in

types.ts:63


widgetVersion

Optional widgetVersion: string | number

The version of the Telegram widget to deal with browser caching.

Defined in

types.ts:68