- Make sure you are signed in to your GitHub account, then just
click
here
to use template. - See Kotlin Telegram bot guide.
App.kt
file is entry point.
Execute ./gradlew clean build
. Your jar will be located at ./build/libs
with -all.jar
postfix.
Now you can run:
TOKEN=... java -jar telegram-all.jar
Execute docker build . -t telegram
. Your image will be located at docker images -a
. Now you can
run:
docker run -v `pwd`:`pwd` -w `pwd` -it --rm --env TOKEN=... telegram