- Telegram account
- Some knowledge of git
- Fork or clone this repository
- Go to https://telegram.me/BotFather
- Send message '/newbot'
- Follow instructions
Your conversation should look something like this
Copy the blurred line of text from your conversation, it is called a token and is vital for the next step
If you haven't already now is the time to fork or clone this repository.
Next we need to connect the code in this repository to the bot we just created.
- Create a file called '.env' inside project root directory*
- Inside .env write 'BOT_TOKEN=[INSERT TOKEN YOU COPIED HERE]' without the [] brackets
*Root directory is the same directory with pom.xml, README.md etc.
Well done! We are almost finished.
- Open up Laudebot.java
- Within the getBotUsername -method insert your bots username
If your bots name is offical_laudebot the method should look like this
Congratulation your bot is now finished. Run the code and test it out
Next you probably want start hacking and hustling on your teams bot. I've heavily commented Laubebot.java so you can use it as starting point for your own. For more detailed informatio visit https://github.com/rubenlagus/TelegramBots/wiki
You can also ask for help from out telegram-channel at: https://t.me/laudekoodit
If you get an error like below it means your token is not setup right.