TelegramBotTutorial/README.md

15 lines
802 B
Markdown
Raw Normal View History

2022-06-20 14:27:14 +00:00
# Telegram Bot Tutorial
2022-06-17 15:54:20 +00:00
2022-06-20 14:27:14 +00:00
This tutorial aimed to show how you may break your bot parts into different modules and run it easily change the
2022-06-17 15:54:20 +00:00
## How to launch
2022-06-20 14:27:14 +00:00
First, you need to change bot token inside of [config.json](config.json). The other parts should be described in the readmes of the modules with these parts.
2022-06-17 15:54:20 +00:00
There are two main ways to launch it:
* Run `./gradlew build && ./gradlew run --args="PATH_TO_YOUR_CONFIG"` with replacing of `PATH_TO_YOUR_CONFIG`
* Run `./gradlew build` and get [zip of bot](build/distributions/bot.zip) and unarchive it somewhere you need. In this
archive there is an executable files `bot.bat` (for windows) and `bot` (for linux) by the path inside of archive
`/bot/bin`. After unarchiving you can just launch executable file with one argument: path to the config