summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormavlushechka <mavlushechka@gmail.com>2021-11-12 01:40:45 +0500
committermavlushechka <mavlushechka@gmail.com>2021-11-12 01:40:45 +0500
commitf57a6afc68241bee5ff2131c0711929e7151c8bd (patch)
tree2e96fa9cafac06adaaf898337af8aa173d9b68b1 /src
parent77740afbc2175a49293dc2a056f207699552998c (diff)
Overloaded sendAnime methods
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java b/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java
index abfc4fc..86d0357 100755
--- a/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java
+++ b/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java
@@ -72,13 +72,13 @@ public class Bot {
TELEGRAM_BOT.execute(new SendPhoto(UserMessage.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel()));
}
- public static void sendAnimeByCallBackQuery() {
+ public static void sendAnime(UsersCallbackQuery usersCallbackQuery) {
Anime[] anime = Anime.list;
byte index = Anime.index;
- TELEGRAM_BOT.execute(new SendPhoto(UsersCallbackQuery.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel()));
+ TELEGRAM_BOT.execute(new SendPhoto(usersCallbackQuery.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel()));
}
- public static void sendSearchedAnime() throws IOException {
+ public static void sendAnime() throws IOException {
String searchedAnime = Anime.searched;
byte index = Anime.index;
byte animeAtSearchSize = Parser.getSizeOfSearchedAnime("https://anime.anidub.life/?do=search&mode=advanced&subaction=search&titleonly=3&story=" + searchedAnime);