MathMasterTelegramBot is a Telegram bot that facilitates the calculation of areas and perimeters of various geometric figures. Users can select a figure and get automatic results or receive a step-by-step explanation on how to perform the calculations manually. Ideal for students, teachers, and geometry enthusiasts.
- Automatic Calculation: Quickly get the area and perimeter of geometric figures.
- Step-by-Step Explanations: Learn how to perform manual calculations with detailed guides.
- User-Friendly Interface: Easily interact with the bot through simple Telegram commands.
- Circle
- Square
- Rectangle
- Triangle
- More figures coming soon...
Follow these steps to set up and run the bot in your local environment:
-
Clone the repository:
git clone https://github.com/Sacha1083/MathMasterTelegramBot.git
-
Navigate to the project directory:
cd MathMasterTelegramBot -
Add a
.envfile with the following properties:BOT_USERNAME=your_bot_username BOT_TOKEN=your_bot_token -
Compile the project using Maven:
mvn clean package
-
Run the bot:
-
Use of the JAR file after exporting:
java -jar MathMasterTelegramBot.jar
-
Using IntelliJ IDEA:
Open the project in IntelliJ IDEA and run the
Mainclass.
-
Once the bot is running, you can interact with it through Telegram:
- /start - Start the conversation with the bot.
- /info - Show video tutorials on how to calculate area and perimeter.
- /operaciones - Show a list of available operations.
Contributions are welcome! If you want to contribute, follow these steps:
- Fork the project.
- Create a new branch (
git checkout -b feature/new-feature). - Make your changes and commit them (
git commit -m 'Add new feature'). - Push your changes to the repository (
git push origin feature/new-feature). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more details.