This is the Module Template for my Telegram Bot Framework.
This module is supposed to help you get started with coding for my framework.
- In your src-folder, remove the folder in which language you don't want to write.
- Write your module
- Put your full package- and class-name in the file under
resources/META-INF/services/
- Make sure it's correctly formatted, like the template classes
- Run
gradle shadowJar
- Run the test-class with your IDE or run the framework manually
Run gradle shadowJar
to create a jar from your module.
If you get an error during the intial run, please follow the Setup guide here
The jar will be put into a new directory called _working_directory
to easily distinguish files that belong to the project from files that have been created by the bot.
You cannot run the module without the BotController, so there is a test-class that basically just proxies the BotController to make it easier to debug with IntelliJ.