A Component React for Telegram Login
Install these dependencies:
yarn add @nixjs23n6/telegram-login
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__}/>)
}