release-0.0.1

This commit is contained in:
uPagge 2020-11-15 20:16:50 +03:00
parent 3210d337e1
commit 86995b4f7d
No known key found for this signature in database
GPG Key ID: A76EB343414E022E
16 changed files with 135 additions and 57 deletions

101
pom.xml
View File

@ -3,30 +3,49 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.sadtech.telegram</groupId> <groupId>org.sadtech.bot.godfather</groupId>
<artifactId>telegram</artifactId> <artifactId>telegram</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>0.0.1-RELEASE</version> <version>0.0.1-RELEASE</version>
<modules> <modules>
<module>bot</module> <module>telegram-bot</module>
</modules> </modules>
<name>Telegram Bot</name> <name>Telegram Bot</name>
<description>Allows you to create bots for Telegram</description> <description>Allows you to create bots for Telegram</description>
<url>https://github.com/uPagge/telegram-bot</url> <url>https://github.com/Godfather-Bots/telegram-bot</url>
<licenses> <licenses>
<license> <license>
<name>Apache 2 License</name> <name>Apache License, Version 2.0</name>
<url>https://github.com/uPagge/telegram-bot/blob/master/LICENSE</url> <url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution> <comments>
Copyright 2010 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions and
limitations under the License.
</comments>
</license> </license>
</licenses> </licenses>
<organization>
<name>SADTECH</name>
<url>https://sadtech.org</url>
</organization>
<scm> <scm>
<connection>scm:git:https://github.com/uPagge/telegram-bot.git</connection> <connection>scm:git:https://github.com/Godfather-Bots/telegram-bot.git</connection>
<url>https://github.com/uPagge/telegram-bot</url> <url>https://github.com/Godfather-Bots/telegram-bot</url>
<developerConnection>scm:git:https://github.com/uPagge/telegram-bot.git</developerConnection> <developerConnection>scm:git:https://github.com/Godfather-Bots/telegram-bot.git</developerConnection>
<tag>release-0.0.1</tag>
</scm> </scm>
<distributionManagement> <distributionManagement>
@ -36,6 +55,39 @@
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/Godfather-Bots/telegram-bot/issues</url>
</issueManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.sadtech.social</groupId>
<artifactId>social-bot</artifactId>
<version>1.0.0-RELEASE</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>4.9.1</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-abilities</artifactId>
<version>4.6</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambotsextensions</artifactId>
<version>4.4.0.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles> <profiles>
<profile> <profile>
<id>release</id> <id>release</id>
@ -108,4 +160,33 @@
</profile> </profile>
</profiles> </profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
<developers>
<developer>
<id>uPagge</id>
<name>Struchkov Mark</name>
<email>upagge@ya.ru</email>
<organization>SADTECH</organization>
<organizationUrl>https://sadtech.org</organizationUrl>
<url>https://uPagge.sadtech.org</url>
<roles>
<role>Project lead</role>
</roles>
<timezone>+3</timezone>
</developer>
</developers>
</project> </project>

View File

@ -1,59 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sadtech.bot.godfather</groupId>
<artifactId>telegram</artifactId>
<version>0.0.1-RELEASE</version>
</parent>
<groupId>org.sadtech.telegram</groupId> <groupId>org.sadtech.telegrambot</groupId>
<artifactId>telegram-bot</artifactId> <artifactId>telegram-bot</artifactId>
<version>0.0.1-RELEASE</version> <version>0.0.1-RELEASE</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Telegram Core</name>
<description>Allows you to create bots for Telegram</description>
<url>https://github.com/uPagge/telegram-bot</url>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.sadtech.social</groupId> <groupId>org.sadtech.social</groupId>
<artifactId>social-bot</artifactId> <artifactId>social-bot</artifactId>
<version>1.0.0-RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId> <artifactId>telegrambots</artifactId>
<version>4.9.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots-abilities</artifactId> <artifactId>telegrambots-abilities</artifactId>
<version>4.6</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambotsextensions</artifactId> <artifactId>telegrambotsextensions</artifactId>
<version>4.4.0.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
<developers> <developers>
<developer> <developer>
<id>uPagge</id> <id>uPagge</id>
<name>Struchkov Mark</name> <name>Struchkov Mark</name>
<email>upagge@ya.ru</email>
<organization>SADTECH</organization> <organization>SADTECH</organization>
<email>upagge@mail.ru</email> <organizationUrl>https://sadtech.org</organizationUrl>
<url>https://uPagge.sadtech.org</url>
<roles>
<role>Project lead</role>
</roles>
<timezone>+3</timezone>
</developer> </developer>
</developers> </developers>

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot; package org.sadtech.bot.godfather.telegram;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;

View File

@ -1,7 +1,7 @@
package org.sadtech.telegram.bot; package org.sadtech.bot.godfather.telegram;
import lombok.NonNull; import lombok.NonNull;
import org.sadtech.telegram.bot.listen.EventDistributorImpl; import org.sadtech.bot.godfather.telegram.listen.EventDistributorImpl;
import org.telegram.telegrambots.meta.bots.AbsSender; import org.telegram.telegrambots.meta.bots.AbsSender;
/** /**

View File

@ -1,9 +1,9 @@
package org.sadtech.telegram.bot; package org.sadtech.bot.godfather.telegram;
import lombok.NonNull; import lombok.NonNull;
import org.sadtech.telegram.bot.config.TelegramPollingConfig; import org.sadtech.bot.godfather.telegram.listen.EventDistributorImpl;
import org.sadtech.telegram.bot.listen.EventDistributor; import org.sadtech.bot.godfather.telegram.config.TelegramPollingConfig;
import org.sadtech.telegram.bot.listen.EventDistributorImpl; import org.sadtech.bot.godfather.telegram.listen.EventDistributor;
import org.telegram.telegrambots.bots.DefaultBotOptions; import org.telegram.telegrambots.bots.DefaultBotOptions;
import org.telegram.telegrambots.bots.TelegramLongPollingBot; import org.telegram.telegrambots.bots.TelegramLongPollingBot;
import org.telegram.telegrambots.meta.api.objects.Update; import org.telegram.telegrambots.meta.api.objects.Update;

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot.autoresponder; package org.sadtech.bot.godfather.telegram.autoresponder;
import org.sadtech.autoresponder.repository.UnitPointerRepository; import org.sadtech.autoresponder.repository.UnitPointerRepository;
import org.sadtech.social.bot.GeneralAutoResponder; import org.sadtech.social.bot.GeneralAutoResponder;

View File

@ -1,11 +1,11 @@
package org.sadtech.telegram.bot.config; package org.sadtech.bot.godfather.telegram.config;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.NonNull; import lombok.NonNull;
import org.sadtech.telegram.bot.ProxyConfig; import org.sadtech.bot.godfather.telegram.ProxyConfig;
/** /**
* TODO: Добавить описание класса. * TODO: Добавить описание класса.

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot.config; package org.sadtech.bot.godfather.telegram.config;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot.convert; package org.sadtech.bot.godfather.telegram.convert;
import org.sadtech.social.core.domain.content.Mail; import org.sadtech.social.core.domain.content.Mail;
import org.telegram.telegrambots.meta.api.objects.CallbackQuery; import org.telegram.telegrambots.meta.api.objects.CallbackQuery;

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot.convert; package org.sadtech.bot.godfather.telegram.convert;
import lombok.AccessLevel; import lombok.AccessLevel;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot.listen; package org.sadtech.bot.godfather.telegram.listen;
import lombok.NonNull; import lombok.NonNull;
import org.telegram.telegrambots.meta.api.objects.Update; import org.telegram.telegrambots.meta.api.objects.Update;

View File

@ -1,9 +1,9 @@
package org.sadtech.telegram.bot.listen; package org.sadtech.bot.godfather.telegram.listen;
import lombok.NonNull; import lombok.NonNull;
import org.sadtech.social.core.service.MailService; import org.sadtech.social.core.service.MailService;
import org.sadtech.telegram.bot.convert.CallbackQueryConvert; import org.sadtech.bot.godfather.telegram.convert.CallbackQueryConvert;
import org.sadtech.telegram.bot.convert.MessageMailConvert; import org.sadtech.bot.godfather.telegram.convert.MessageMailConvert;
import org.telegram.telegrambots.meta.api.objects.CallbackQuery; import org.telegram.telegrambots.meta.api.objects.CallbackQuery;
import org.telegram.telegrambots.meta.api.objects.Message; import org.telegram.telegrambots.meta.api.objects.Message;
import org.telegram.telegrambots.meta.api.objects.Update; import org.telegram.telegrambots.meta.api.objects.Update;

View File

@ -1,10 +1,10 @@
package org.sadtech.telegram.bot.listen; package org.sadtech.bot.godfather.telegram.listen;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.sadtech.telegram.bot.ProxyConfig; import org.sadtech.bot.godfather.telegram.ProxyConfig;
import org.sadtech.telegram.bot.TelegramBot; import org.sadtech.bot.godfather.telegram.TelegramBot;
import org.sadtech.telegram.bot.TelegramPollingBot; import org.sadtech.bot.godfather.telegram.TelegramPollingBot;
import org.sadtech.telegram.bot.config.TelegramPollingConfig; import org.sadtech.bot.godfather.telegram.config.TelegramPollingConfig;
import org.telegram.telegrambots.ApiContextInitializer; import org.telegram.telegrambots.ApiContextInitializer;
import org.telegram.telegrambots.bots.DefaultBotOptions; import org.telegram.telegrambots.bots.DefaultBotOptions;
import org.telegram.telegrambots.meta.ApiContext; import org.telegram.telegrambots.meta.ApiContext;

View File

@ -1,7 +1,8 @@
package org.sadtech.telegram.bot.listen; package org.sadtech.bot.godfather.telegram.listen;
import lombok.Setter; import lombok.Setter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.sadtech.bot.godfather.telegram.service.SendPreProcessing;
import org.sadtech.social.core.domain.BoxAnswer; import org.sadtech.social.core.domain.BoxAnswer;
import org.sadtech.social.core.domain.keyboard.KeyBoard; import org.sadtech.social.core.domain.keyboard.KeyBoard;
import org.sadtech.social.core.domain.keyboard.KeyBoardButton; import org.sadtech.social.core.domain.keyboard.KeyBoardButton;
@ -9,7 +10,6 @@ import org.sadtech.social.core.domain.keyboard.KeyBoardLine;
import org.sadtech.social.core.domain.keyboard.button.KeyBoardButtonText; import org.sadtech.social.core.domain.keyboard.button.KeyBoardButtonText;
import org.sadtech.social.core.service.sender.SendType; import org.sadtech.social.core.service.sender.SendType;
import org.sadtech.social.core.service.sender.Sending; import org.sadtech.social.core.service.sender.Sending;
import org.sadtech.telegram.bot.service.SendPreProcessing;
import org.telegram.telegrambots.meta.api.methods.send.SendMessage; import org.telegram.telegrambots.meta.api.methods.send.SendMessage;
import org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup; import org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup;
import org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboard; import org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboard;

View File

@ -1,4 +1,4 @@
package org.sadtech.telegram.bot.service; package org.sadtech.bot.godfather.telegram.service;
/** /**
* // TODO: 18.09.2020 Добавить описание. * // TODO: 18.09.2020 Добавить описание.