Version 1.0.1
Java documentation
Library link in Maven Central
Maven dependency
<dependency>
<groupId>io.github.nazarovctrl</groupId>
<artifactId>telegram-bot-spring</artifactId>
<version>1.0.1</version>
</dependency>
How to use library?
$\textcolor{red}{\textsf{*}}$ required steps
1.Add annotation @EnableTelegramLongPollingBot or @EnableTelegramWebhookBot
$\textcolor{red}{\textsf{*}}$
Use @EnableTelegramLongPollingBot annotation for creating telegram bot without webhook
Use @EnableTelegramWebhookBot annotation for telegram bot with webhook
2.Inherit from @updatecontroller abstract class
$\textcolor{red}{\textsf{*}}$
Override handle method
Make your class as a bean. In previous picture was used @Service annonation for making the class as a bean
3.Add bot configuration to application.properties
$\textcolor{red}{\textsf{*}}$

