【文件属性】:
文件名称:spring-tg:在Spring中以SpringMVC方式创建Telegram Bot命令
文件大小:51KB
文件格式:ZIP
更新时间:2021-05-17 14:06:13
java spring spring-boot telegram telegram-bot
弹簧TG
在中以SpringMVC方式创建命令。 该项目使用的
例子
您可以在“ spring-tg-examples”模块中找到实际示例
Sprint Boot
启用spring-tg
必须将“ bot.token”和“ bot.name”添加到属性文件(application.properties)
@SpringBootApplication
@EnableTgBot // Just add this annotation to some configuration bean
public class SpringBootTelegramBotApplication {
public static void main ( String [] args ) {
SpringApplication . run( SpringBootTelegramBotA