Ошибка запуска проекта. Error starting ApplicationContext. Не могу понять причину

мой main

@SneakyThrows
public static void main(String[] args) {
    SpringApplication.run(BotApplication.class);
}

@Bean
public CommandLineRunner commandLineRunner(@Autowired TelegramBotsApi telegramBotsApi, @Autowired Bot bot) {
    return args -> {
        telegramBotsApi.registerBot(bot);
    };
}

@SneakyThrows
@Bean
public TelegramBotsApi telegramBotsApi(Bot bot) {
    return new TelegramBotsApi(DefaultBotSession.class);
}

введите сюда описание изображения


Ответы (0 шт):