A TelegramBot module for NVOIP reports
First you will need to download or clone this repository and put it on the modules folder. Then edit the following files:
keys.json
{
"nvoip_token": "YOURNVOIPTOKEN",
"data": {
"some_user": {
"username": "UserNameHere"
},
"some_user": {
"username": "UserNameHere"
}
}
}
list.txt
Put in this file just one line, it will be displayed as many times as you have datas from NVOIP, and it also has keywords :)
KeyWords for model.txt
{balance} = Returns balance
Send a message in the chat as in the following example:
/n user
Where the user
is equals to one of the values you put on the keys.json attribute.
And you're done! The bot will reply with all the data you wanted.