dev-code
v1.0.4
Published
A helper for dev-code.ir telegram bot using in projects
Readme
README
A helper for using Dev Code Telegram Bot in node projects
Installation
npm install dev-codeor
yarn add dev-codeUsage
const devcode = require("dev-code");
devcode.send(
"DEVCODE_TOKEN",
"USERNAME",
"CODE",
"SELF_HOSTED_DOMAIN"
).then((response)=>{
// Do your work
}).catch((error)=>{
// Handle network error
});SELF_HOSTED_DOMAIN is optional, use it if you self-hosted the telegram bot
By default, http://dev-code.ir will be used
Attributions
Icon made by Freepik from www.flaticon.com
