diff options
Diffstat (limited to 'src/main/java/com/mavlushechka/animarfo/telegram/bot')
-rwxr-xr-x[-rw-r--r--] | src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java | 6 |
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 6dee032..a914227 100644..100755 --- a/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java +++ b/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java @@ -4,7 +4,7 @@ import com.mavlushechka.animarfo.App; import com.mavlushechka.animarfo.anime.Anime; import com.mavlushechka.animarfo.parser.Parser; import com.mavlushechka.animarfo.telegram.user.TelegramUser; -import com.mavlushechka.animarfo.telegram.user.callbackquery.UserCallbackQuery; +import com.mavlushechka.animarfo.telegram.user.callbackquery.UsersCallbackQuery; import com.mavlushechka.animarfo.telegram.user.keyboard.UserKeyboard; import com.mavlushechka.animarfo.telegram.user.message.UserMessage; import com.pengrad.telegrambot.TelegramBot; @@ -37,7 +37,7 @@ public class Bot { updates.forEach(update -> { if (update.callbackQuery() != null) { try { - UserCallbackQuery.execute(update.callbackQuery()); + UsersCallbackQuery.execute(update.callbackQuery()); } catch (IOException ioException) { ioException.printStackTrace(); } @@ -74,7 +74,7 @@ public class Bot { public static void sendAnimeByCallBackQuery() { Anime[] anime = Anime.list; byte index = Anime.index; - TELEGRAM_BOT.execute(new SendPhoto(UserCallbackQuery.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 { |