File tree Expand file tree Collapse file tree 4 files changed +11
-19
lines changed
src/io/github/artemget/teleroute/telegrambots Expand file tree Collapse file tree 4 files changed +11
-19
lines changed Original file line number Diff line number Diff line change 1212 <name >eleroute-telegrambots</name >
1313 <properties >
1414 <logging .version>2.22.1</logging .version>
15- <telegrambots .version>6.9.7.1 </telegrambots .version>
15+ <telegrambots .version>9.1.0 </telegrambots .version>
1616 </properties >
1717 <dependencies >
1818 <dependency >
2222 </dependency >
2323 <dependency >
2424 <groupId >org.telegram</groupId >
25- <artifactId >telegrambots</artifactId >
25+ <artifactId >telegrambots-meta </artifactId >
2626 <version >${telegrambots.version} </version >
27+ <scope >compile</scope >
2728 </dependency >
2829 <dependency >
2930 <groupId >org.junit.jupiter</groupId >
5859 <exclude >
5960 duplicatefinder:.*
6061 </exclude >
61- <exclude >
62- dependencies:org.telegram:telegrambots:jar:6.9.7.1
63- </exclude >
64- <exclude >
65- dependencies:org.telegram:telegrambots-meta:jar:6.9.7.1
66- </exclude >
67- <exclude >
68- dependencies:com.github.ArtemGet:teleroute:jar:1.0.0:compile
69- </exclude >
7062 </excludes >
7163 <license >file:${basedir} /LICENSE</license >
7264 </configuration >
Original file line number Diff line number Diff line change 2727import io .github .artemget .teleroute .send .Send ;
2828import io .github .artemget .teleroute .send .SendException ;
2929import java .io .Serializable ;
30- import org .telegram .telegrambots .meta .api .methods .BotApiMethod ;
31- import org .telegram .telegrambots .meta .bots .AbsSender ;
30+ import org .telegram .telegrambots .meta .api .methods .botapimethods .BotApiMethod ;
3231import org .telegram .telegrambots .meta .exceptions .TelegramApiException ;
32+ import org .telegram .telegrambots .meta .generics .TelegramClient ;
3333
3434/**
3535 * Send all content laying under {@code BotApiMethod<T>}. Including ancestors of
3939 * @see BotApiMethod
4040 * @since 0.1.0
4141 */
42- public final class SendMessageWrap <T extends Serializable > implements Send <AbsSender > {
42+ public final class SendMessageWrap <T extends Serializable > implements Send <TelegramClient > {
4343 /**
4444 * Message.
4545 */
@@ -55,7 +55,7 @@ public SendMessageWrap(final BotApiMethod<T> message) {
5555 }
5656
5757 @ Override
58- public void send (final AbsSender send ) throws SendException {
58+ public void send (final TelegramClient send ) throws SendException {
5959 try {
6060 send .execute (this .message );
6161 } catch (final TelegramApiException exception ) {
Original file line number Diff line number Diff line change 2727import io .github .artemget .teleroute .send .Send ;
2828import io .github .artemget .teleroute .send .SendException ;
2929import org .telegram .telegrambots .meta .api .methods .send .SendSticker ;
30- import org .telegram .telegrambots .meta .bots .AbsSender ;
3130import org .telegram .telegrambots .meta .exceptions .TelegramApiException ;
31+ import org .telegram .telegrambots .meta .generics .TelegramClient ;
3232
3333/**
3434 * Send sticker wrap.
3535 *
3636 * @since 0.1.0
3737 */
38- public final class SendStickerWrap implements Send <AbsSender > {
38+ public final class SendStickerWrap implements Send <TelegramClient > {
3939 /**
4040 * Message.
4141 */
@@ -51,7 +51,7 @@ public SendStickerWrap(final SendSticker message) {
5151 }
5252
5353 @ Override
54- public void send (final AbsSender send ) throws SendException {
54+ public void send (final TelegramClient send ) throws SendException {
5555 try {
5656 send .execute (this .message );
5757 } catch (final TelegramApiException exception ) {
Original file line number Diff line number Diff line change 2626
2727import io .github .artemget .teleroute .update .Wrap ;
2828import java .util .Optional ;
29- import org .telegram .telegrambots .meta .api .objects .Message ;
3029import org .telegram .telegrambots .meta .api .objects .Update ;
30+ import org .telegram .telegrambots .meta .api .objects .message .Message ;
3131
3232/**
3333 * Telegram Update wrap.
You can’t perform that action at this time.
0 commit comments