Bot for voting using telegram
- Setup files
src/main/resources/application.properties,src/main/resources/players.jsonandsrc/main/resources/keys.txt. - Open console in project's folder.
- Package project using
$ mvn clean package. - Open created folder
targetin cosole using command$ cd target. - Run project using command
$ java -jar bank.jar.
- Open file
src/main/resources/application.properties. - Open chat in telegram with @BotFather.
- Press start.
- Send command
/newbot, then type bot's name. - Copy HTTP Api token from bot's answer and past it to third line in opened file.
- If you want, type admin chat id on seventh line. You may get it from console after launch application.
- Open file
src/main/resources/players.json. - This file use json format. Type massives to root massive. Players name should by typed in
"bracket. - Each massive - new line in telegram button.
- Open file
src/main/resources/keys.txt. - Type each key from new line.
- Java 11
- Maven