A bot is an implementation of communication between a server and a client via API.
Interaction with bots is implemented through buttons:
- Помощь - when clicked, an image with instructions on how to add a product will be sent.
- Добавить товар - when clicked, text instructions will be sent, after which the product must be added. The system will wait for the customer to enter the product. If the product is successfully added, the message "Товар добавлен" will be sent; otherwise, "Товар не добавлен."
Basic settings for the bot and customization of text for buttons are carried out through files:
- bot.properties - includes message text, button text, and a link for sending a request.
- .env - contains basic bot settings, such as the token, bot name, and admin ID.
If you want to start this project locally, after clone you need enter this command:
gradle build
gradle run- Java 21;
- Gradle 8.5
- Telegrambots-client 9.0.0