Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 524 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 524 Bytes

@nixjs23n6/telegram-login

A Component React for Telegram Login

Quick Setup

Install

Install these dependencies:

yarn add @nixjs23n6/telegram-login

Setup & Usage

import { TelegramButton, TelegramUser } from '@nixjs23n6/telegram-login'

interface LoginPropArg {}

export const Login: React.FC<LoginPropArg> = () => {
    const responseTelegram = (response: TelegramUser) => console.log(response)

    return (<TelegramButton dataOnAuth={responseTelegram} botName={__TELEGRAM_BOT__}/>)
}