Skip to content

Commit 94f8b54

Browse files
Изменен порядок параметров метода enterScene в MainMenuScene для улучшения читаемости кода
1 parent 87e88bc commit 94f8b54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/ru/untitled_devs/bot/features/menu/MainMenuScene.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboardMarkup;
55
import org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardButton;
66
import org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardRow;
7-
import ru.untitled_devs.bot.shared.localisation.ButtonKey;
87
import ru.untitled_devs.bot.shared.localisation.BtnLocService;
8+
import ru.untitled_devs.bot.shared.localisation.ButtonKey;
99
import ru.untitled_devs.bot.shared.localisation.MessageKey;
1010
import ru.untitled_devs.bot.shared.localisation.MsgLocService;
1111
import ru.untitled_devs.core.client.BotClient;
@@ -83,13 +83,13 @@ else if (text.equals(viewLikesButton))
8383
}
8484

8585
private void openMyProfileScene(long chatId, FSMContext ctx) {
86-
sceneManager.enterScene("myProfile", chatId, ctx);
86+
sceneManager.enterScene(chatId, "myProfile", ctx);
8787
}
8888
private void openViewProfilesScene(long chatId, FSMContext ctx) {
89-
sceneManager.enterScene("viewProfiles", chatId, ctx);
89+
sceneManager.enterScene(chatId, "viewProfiles", ctx);
9090
}
9191
private void openViewLikesScene(long chatId, FSMContext ctx) {
92-
sceneManager.enterScene("viewLikes", chatId, ctx);
92+
sceneManager.enterScene(chatId, "viewLikes", ctx);
9393
}
9494

9595
}

0 commit comments

Comments
 (0)