summaryrefslogtreecommitdiff
path: root/src/main/java/files/Bot.java
diff options
context:
space:
mode:
authormavlonerkinboev <mavlonbek.ibragimov007@gmail.com>2021-07-27 09:44:01 +0500
committermavlonerkinboev <mavlonbek.ibragimov007@gmail.com>2021-07-27 09:44:01 +0500
commitb6c235dfd453850a478ad4ffe7d334f87427ad9f (patch)
tree11e59546df0cd0e2422a9dadfa8c41c7ecb7e132 /src/main/java/files/Bot.java
parent3d93e3f7f845ceca4cea62302cc238e21bcd5429 (diff)
just another commit...
Diffstat (limited to 'src/main/java/files/Bot.java')
-rw-r--r--src/main/java/files/Bot.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/files/Bot.java b/src/main/java/files/Bot.java
index 6c7a521..15baa1c 100644
--- a/src/main/java/files/Bot.java
+++ b/src/main/java/files/Bot.java
@@ -66,13 +66,13 @@ public class Bot {
e.printStackTrace();
}
Anime.setList(anime);
- TELEGRAM_BOT.execute(new SendPhoto(UserMessage.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(MyKeyboard.getCarousel()));
+ TELEGRAM_BOT.execute(new SendPhoto(UserMessage.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel()));
}
public static void sendAnimeByCallBackQuery() {
Anime[] anime = Anime.list;
byte index = Anime.indexOfAnime;
- TELEGRAM_BOT.execute(new SendPhoto(UserCallbackQuery.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(MyKeyboard.getCarousel()));
+ TELEGRAM_BOT.execute(new SendPhoto(UserCallbackQuery.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel()));
}
public static void sendSearchedAnime() throws IOException {
@@ -88,7 +88,7 @@ public class Bot {
}
Anime.size = animeAtSearchSize;
Anime.setList(anime);
- TELEGRAM_BOT.execute(new SendPhoto(UserMessage.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(MyKeyboard.getCarousel()));
+ TELEGRAM_BOT.execute(new SendPhoto(UserMessage.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel()));
} else {
TELEGRAM_BOT.execute(new SendMessage(UserMessage.chatId, "Прости, но я не смог найти аниме с таким названием...\nДавай поищем другое аниме!"));
Anime.isSearching = true;