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
|
```java
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
//Add this annotation to enable automatic bots initializing
|
|
||||||
@EnableTelegramBots
|
|
||||||
public class YourApplicationMainClass {
|
public class YourApplicationMainClass {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -246,7 +244,7 @@ public class YourApplicationMainClass {
|
|||||||
|
|
||||||
After that your bot will look like:
|
After that your bot will look like:
|
||||||
```java
|
```java
|
||||||
//Standart Spring component annotation
|
//Standard Spring component annotation
|
||||||
@Component
|
@Component
|
||||||
public class YourBotClassName extends TelegramLongPollingBot {
|
public class YourBotClassName extends TelegramLongPollingBot {
|
||||||
//Bot body.
|
//Bot body.
|
||||||
|
Loading…
Reference in New Issue
Block a user