Update Wiki FAQ Spring Boot starter

This commit is contained in:
Stephan Groenewold 2018-10-24 16:42:31 +02:00
parent b4f710beaf
commit 60d5634938

View File

@ -231,8 +231,6 @@ Your main spring boot class should look like this:
```java
@SpringBootApplication
//Add this annotation to enable automatic bots initializing
@EnableTelegramBots
public class YourApplicationMainClass {
public static void main(String[] args) {
@ -246,7 +244,7 @@ public class YourApplicationMainClass {
After that your bot will look like:
```java
//Standart Spring component annotation
//Standard Spring component annotation
@Component
public class YourBotClassName extends TelegramLongPollingBot {
//Bot body.