Merge pull request #533 from Saberos/dev
Update Wiki FAQ Spring Boot starter
This commit is contained in:
commit
7c33c8f454
@ -264,8 +264,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) {
|
||||||
@ -279,7 +277,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