Skip to content

arebaka/tgoauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram OAuth for Node.js

When you dont know what to code, code something useful.

A microservice for Telegram OAuth on Node.js.

Installation

npm i tgoauth

Usage

const tgoauth = require("tgoauth");

const secretKey = tgoauth.createSecretKey(BOT_TOKEN);

if (tgoauth.check(secretKey, data)) {
    // success
} else {
    // failed
}