- Link: https://t.me/GadalkaMathBot
- Username: @GadalkaMathBot
A Telegram bot written in C++ that evaluates mathematical expressions, including inline mode. It supports both basic and advanced functions in the following categories:
- Arithmetic operations
- Trigonometric functions
- Logarithms
- Powers
Computation is powered by a custom engine/library.
Language standard: C++23
Dependencies:
- tgbot-cpp — Telegram Bot API for C++
- nlohmann-json — JSON processing
- sqlite3 — embedded SQL database
- MathWorker — C++ library for mathematical expressions
- Bot settings: buttons and menu
- More predefined functions and examples
- Multi-line/systems of expressions mode
-
Clone the repository
git clone https://github.com/Igorantivirus/MathTgBot cd MathTgBot -
Generate CMake files
cmake -B build
-
Build
cmake --build build --config Release
-
Configure
Edit
assets/mainConfig.json. At minimum:- Provide the bot API token
- Ensure the path to
assets/responseConfig.jsonis correct
-
Run
From the
builddirectory, run the executableMathBot, passing the path toassets/mainConfig.json:./MathBot "path/assets/mainConfig.json"
MIT License