项目作者: Munoon
项目描述 :
Bot for voting using telegram
高级语言: Java
项目地址: git://github.com/Munoon/Telegram-Voting-Bot.git
Telegram-Voting-Bot

Bot for voting using telegram
How to launch
- Setup files
src/main/resources/application.properties
, src/main/resources/players.json
and src/main/resources/keys.txt
. - Open console in project’s folder.
- Package project using
$ mvn clean package
. - Open created folder
target
in cosole using command $ cd target
. - Run project using command
$ java -jar bank.jar
.
How to setup application.properties
- 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.
How to setup players.json
- 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.
How to setup keys.txt
- Open file
src/main/resources/keys.txt
. - Type each key from new line.
Requirement
- Java 11
- Maven