This project is a Java application that utilizes the Telegram Bots API to create a bot using long polling. It includes a main application class and unit tests to ensure functionality.
my-java-app
├── src
│ ├── main
│ │ ├── java
│ │ │ └── App.java
│ │ └── resources
│ └── test
│ └── java
│ └── AppTest.java
├── build.gradle
├── settings.gradle
└── README.md
- Java Development Kit (JDK) 8 or higher
- Gradle 6.0 or higher
-
Clone the repository:
git clone <repository-url> cd my-java-app -
Build the project using Gradle:
./gradlew build
To run the application, execute the following command:
./gradlew run
To run the unit tests, use the command:
./gradlew test
This project uses the following dependencies:
org.telegram:telegrambots-longpolling:9.1.0org.telegram:telegrambots-client:9.1.0
This project is licensed under the MIT License. See the LICENSE file for more details.