-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegram bot is not running in Spring 3.1.0 #1226
Comments
are you sure that classpath contain starter? |
@centralhardware
|
@rubenlagus What do you think? |
@Aryesia but its not help, i create extend TelegramLongPollingBot and add EnableTelegramBot to application and no print update |
@Programistich Hmm.. It's working for me. Maybe you have another problem (Proofs in screenshots) |
Can u share this project? |
Running with: Spring Boot v3.1.0 plugins {
id 'java'
id 'org.springframework.boot' version '3.1.0'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'group'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.projectlombok:lombok'
implementation 'org.telegram:telegrambots:6.7.0'
implementation 'org.telegram:telegrambots-spring-boot-starter:6.7.0'
implementation 'org.telegram:telegrambotsextensions:6.7.0'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
} @Import({TelegramBotStarterConfiguration.class})
@SpringBootApplication
public class TelegramBotApplication {
public static void main(String[] args) {
SpringApplication.run(TelegramBotApplication.class, args);
}
} works fine |
Now latest version for telegram is 2.7.12 |
Updates documentation for telegrambots-spring-boot-starter to include needed @import annotation See: rubenlagus#1226
Describe the bug
Hi! I can't see when telegram bot is running in spring. He's just start and stoping.
Code
LOG
Information
The text was updated successfully, but these errors were encountered: