1.0.0 • Published 2 years ago

telegram-bot-auth v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

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

1.0.0

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago