telegram-bot-auth

1.0.0 • Public • Published

Telegram-bot-auth

Zero dependancy utility package to perfrorm auth with telegram. Blazingly fast, as always

Examples

import telegramLogin from 'telegram-bot-auth'

try {
  const params = {
    botId: 1234567890, // telergam id of bot
    botNick: 'yourBot', // telegram username of bot
    origin: 'https://your.domain', // domain that is linked to your bot
    phone: '+1234567890' // phone number to auth
  }
  const tgUser = await telegramLogin(params)
} catch (error) {
  console.error('Telegram auth error', error)
}

This will send auth data to telegram servers and then telegram user with such phone number will recieve message from system to accept or decline his auth in your.domain

Related Packages

React-telegram-auth will be ready soon

Readme

Keywords

Package Sidebar

Install

npm i telegram-bot-auth

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

14.4 kB

Total Files

9

Last publish

Collaborators

  • zmeu213