This project has for purpose to be able to run a telegram bot interaction script.
- Massa node : Periodically checks your massa node status and send a message if the node seems down
- Activity logging : Logs all activity into
bot_activity.log
- User white list : Robbi can filter users access based on a preconfigured whitelist.
- Highly customizable : You can use your own API keys and update with your own commands.
The topology.json
file describes all the usefull configuration informations for Robbi.
{
"telegram_bot_token": "YOUR_API_KEY",
"user_white_list": {
"admin": "YOUR_USER_ID"
},
"massa_node_address": "YOUR_MASSA_ADDRESS",
"ninja_api_key" : "YOUR_NINJA_API_KEY"
}
-
/hi
: Say hi to Robbi. -
/node
: Retrieve info from your preconfigured Massa node, such as roll count, validated cycles, missed cycles and balance. -
/btc
: Get bitcoin price, variation, high, low and volume. -
/mas
: Get MAS/USDT info from MEXC. -
/hist
: Send the MAS balance history logged from periodic node pings and manual requests. -
/flush
: Clean activity debug logs and clean MAS balance history
- Python 3.x
- A telegram account and a bot created thanks to BotFather.
- Python libraries :
python-telegram-bot
,requests
,json
,logging
,plotly
,apscheduler
python .\src\main.py