diff --git a/gitlab-app/pom.xml b/gitlab-app/pom.xml
index c428c9b..5ff9a70 100644
--- a/gitlab-app/pom.xml
+++ b/gitlab-app/pom.xml
@@ -51,10 +51,6 @@
org.springframework.boot
spring-boot-starter
-
- org.springframework.boot
- spring-boot-starter-actuator
-
diff --git a/gitlab-app/src/main/resources/application.yml b/gitlab-app/src/main/resources/application.yml
index a72723b..7986763 100644
--- a/gitlab-app/src/main/resources/application.yml
+++ b/gitlab-app/src/main/resources/application.yml
@@ -21,7 +21,7 @@ logging:
level:
"dev.struchkov": ${LOG_LEVEL:info}
-telegram-config:
+telegram-bot:
bot-username: ${TELEGRAM_BOT_USERNAME}
bot-token: ${TELEGRAM_BOT_TOKEN}
proxy-config:
diff --git a/pom.xml b/pom.xml
index ff773ce..c2b1039 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,7 +44,7 @@
UTF-8
UTF-8
- 0.0.49
+ 0.0.50-SNAPSHOT
2.6.0
0.0.9
0.0.5
@@ -129,20 +129,8 @@
dev.struchkov.godfather.telegram
- telegram-consumer-simple
- ${godfather.telegram.core.version}
-
-
-
- dev.struchkov.godfather.telegram
- telegram-core-simple
- ${godfather.telegram.core.version}
-
-
-
- dev.struchkov.godfather.telegram
- telegram-sender-simple
- ${godfather.telegram.core.version}
+ telegram-bot-spring-boot-starter
+ ${godfather.telegram.version}
diff --git a/telegram-bot/pom.xml b/telegram-bot/pom.xml
index 9407de5..9bcda07 100644
--- a/telegram-bot/pom.xml
+++ b/telegram-bot/pom.xml
@@ -19,17 +19,7 @@
dev.struchkov.godfather.telegram
- telegram-consumer-simple
-
-
-
- dev.struchkov.godfather.telegram
- telegram-sender-simple
-
-
-
- dev.struchkov.godfather.telegram
- telegram-core-simple
+ telegram-bot-spring-boot-starter
diff --git a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/config/TelegramBotConfig.java b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/config/TelegramBotConfig.java
deleted file mode 100644
index 4fb6e03..0000000
--- a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/config/TelegramBotConfig.java
+++ /dev/null
@@ -1,178 +0,0 @@
-package dev.struchkov.bot.gitlab.telegram.config;
-
-import dev.struchkov.bot.gitlab.telegram.service.ReplaceUrlLocalhost;
-import dev.struchkov.bot.gitlab.telegram.unit.MenuConfig;
-import dev.struchkov.bot.gitlab.telegram.unit.command.AnswerNoteUnit;
-import dev.struchkov.bot.gitlab.telegram.unit.command.DeleteMessageUnit;
-import dev.struchkov.bot.gitlab.telegram.unit.command.DisableNotifyMrUnit;
-import dev.struchkov.bot.gitlab.telegram.unit.command.DisableNotifyThreadUnit;
-import dev.struchkov.bot.gitlab.telegram.unit.command.EnableProjectNotify;
-import dev.struchkov.bot.gitlab.telegram.unit.flow.InitSettingFlow;
-import dev.struchkov.godfather.main.core.unit.TypeUnit;
-import dev.struchkov.godfather.main.domain.content.Mail;
-import dev.struchkov.godfather.simple.context.service.ErrorHandler;
-import dev.struchkov.godfather.simple.context.service.EventHandler;
-import dev.struchkov.godfather.simple.context.service.PersonSettingService;
-import dev.struchkov.godfather.simple.context.service.Sending;
-import dev.struchkov.godfather.simple.context.service.UnitPointerService;
-import dev.struchkov.godfather.simple.core.action.AnswerTextAction;
-import dev.struchkov.godfather.simple.core.action.cmd.RollBackCmdAction;
-import dev.struchkov.godfather.simple.core.provider.StoryLineHandler;
-import dev.struchkov.godfather.simple.core.service.PersonSettingServiceImpl;
-import dev.struchkov.godfather.simple.core.service.StorylineContextMapImpl;
-import dev.struchkov.godfather.simple.core.service.StorylineMailService;
-import dev.struchkov.godfather.simple.core.service.StorylineService;
-import dev.struchkov.godfather.simple.core.service.UnitPointerServiceImpl;
-import dev.struchkov.godfather.simple.data.StorylineContext;
-import dev.struchkov.godfather.simple.data.repository.impl.PersonSettingLocalRepository;
-import dev.struchkov.godfather.simple.data.repository.impl.StorylineMapRepository;
-import dev.struchkov.godfather.simple.data.repository.impl.UnitPointLocalRepository;
-import dev.struchkov.godfather.telegram.domain.config.ProxyConfig;
-import dev.struchkov.godfather.telegram.domain.config.TelegramConnectConfig;
-import dev.struchkov.godfather.telegram.main.context.TelegramConnect;
-import dev.struchkov.godfather.telegram.simple.consumer.EventDistributorService;
-import dev.struchkov.godfather.telegram.simple.context.service.EventDistributor;
-import dev.struchkov.godfather.telegram.simple.context.service.TelegramSending;
-import dev.struchkov.godfather.telegram.simple.context.service.TelegramService;
-import dev.struchkov.godfather.telegram.simple.core.MailAutoresponderTelegram;
-import dev.struchkov.godfather.telegram.simple.core.TelegramConnectBot;
-import dev.struchkov.godfather.telegram.simple.core.service.SenderMapRepository;
-import dev.struchkov.godfather.telegram.simple.core.service.TelegramServiceImpl;
-import dev.struchkov.godfather.telegram.simple.sender.TelegramSender;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.scheduling.annotation.EnableScheduling;
-
-import java.util.List;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
-/**
- * @author upagge [30.01.2020]
- */
-@Slf4j
-@Configuration
-@EnableScheduling
-public class TelegramBotConfig {
-
- @Bean("messageExecutorService")
- public ExecutorService executorService() {
- return Executors.newFixedThreadPool(3);
- }
-
- @Bean
- public TelegramService telegramService(TelegramConnect telegramConnect) {
- return new TelegramServiceImpl(telegramConnect);
- }
-
- @Bean
- public AnswerTextAction answerTextAction(Sending sending) {
- return new AnswerTextAction(sending);
- }
-
- @Bean
- public StorylineContext storylineContext() {
- return new StorylineContextMapImpl();
- }
-
- @Bean
- public UnitPointerService unitPointerService() {
- return new UnitPointerServiceImpl(new UnitPointLocalRepository());
- }
-
- @Bean
- public PersonSettingService personSettingService() {
- return new PersonSettingServiceImpl(new PersonSettingLocalRepository());
- }
-
- @Bean
- public StorylineService storylineService(
- UnitPointerService unitPointerService,
-
- MenuConfig menuConfig,
- InitSettingFlow unitConfig,
- AnswerNoteUnit commandUnit,
- DeleteMessageUnit deleteMessageUnit,
- DisableNotifyMrUnit disableNotifyMrUnit,
- DisableNotifyThreadUnit disableNotifyThreadUnit,
- EnableProjectNotify enableProjectNotify
- ) {
- final List