typo
This commit is contained in:
parent
27e0751b7e
commit
1728a23b00
@ -52,10 +52,10 @@ 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 YourBotName extends TelegramLongPollingBot {
|
public class YourBotName extends TelegramLongPollingBot {
|
||||||
//Bot body.
|
//Bot body.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
Also you could just implement LongPollingBot or WebHookBot interfaces. All this bots will be registered in context and connected to Telegram api.
|
Also you could just implement LongPollingBot or WebHookBot interfaces. All this bots will be registered in context and connected to Telegram api.
|
||||||
|
Loading…
Reference in New Issue
Block a user