Update Wiki FAQ Spring Boot starter
This commit is contained in:
parent
b4f710beaf
commit
60d5634938
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user