Skip to content

nixjs/telegram-login

Repository files navigation

@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__}/>)
}