mirror of
https://github.com/InsanusMokrassar/TelegramBotTutorial.git
synced 2024-12-22 06:07:11 +00:00
.github/workflows | ||
gradle | ||
introduction | ||
_config.yml | ||
.gitattributes | ||
.gitignore | ||
build.gradle | ||
config.json | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
README.md | ||
settings.gradle |
Telegram Bot Tutorial
This tutorial aimed to show how you may break your bot parts into different modules and run it easily change the
How to launch
First, you need to change bot token inside of config.json. The other parts should be described in the readmes of the modules with these parts.
There are two main ways to launch it:
- Run
./gradlew build && ./gradlew run --args="PATH_TO_YOUR_CONFIG"
with replacing ofPATH_TO_YOUR_CONFIG
- Run
./gradlew build
and get zip of bot and unarchive it somewhere you need. In this archive there is an executable filesbot.bat
(for windows) andbot
(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