Merge pull request #533 from Saberos/dev

Update Wiki FAQ Spring Boot starter
This commit is contained in:
Ruben Bermudez 2018-10-31 20:12:35 +00:00 committed by GitHub
commit 7c33c8f454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,8 +264,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) {
@ -279,7 +277,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.