A simple Telegram Bot written in C++ to run shell commands in a Linux system remotely from a Telegram Bot.
- Install C++ Telegram Bot Library. The guide to install the library is here
- Go to @BotFather in telegram and create a Bot.
- Get the Bot API Key and add it in TG_API_KEY in
include/definit.h
header file. - Add your user id in SUDO_USER in
include/definit.h
header file. - And finally to run the Bot run following commands:-
cmake .
make -j $(nproc --all)
./tgbot