package com.juick.server.configuration; import com.juick.server.TelegramBotManager; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration @ConditionalOnProperty(name = "telegram_token") public class TelegramConfig { @Bean public TelegramBotManager telegramBotManager() { return new TelegramBotManager(); } }