|
@@ -161,7 +161,17 @@ namespace MafiaTelegramBot.Resources
|
|
|
|
|
|
public static InlineKeyboardMarkup ChangeNameKeyboard(long userId)
|
|
public static InlineKeyboardMarkup ChangeNameKeyboard(long userId)
|
|
{
|
|
{
|
|
- return new(InlineKeyboardButton.WithCallbackData(strings.change_name, $"{Callback.ChangeNickName}|{userId}"));
|
|
|
|
|
|
+ return new(new[]
|
|
|
|
+ {
|
|
|
|
+ new[]
|
|
|
|
+ {
|
|
|
|
+ InlineKeyboardButton.WithCallbackData(strings.change_name, $"{Callback.ChangeNickName}|{userId}")
|
|
|
|
+ },
|
|
|
|
+ new[]
|
|
|
|
+ {
|
|
|
|
+ InlineKeyboardButton.WithCallbackData(strings.back_to_profile, $"{Callback.BackToProfile}|{userId}")
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
public static InlineKeyboardMarkup RoomsKeyboard(List<GameRoom> rooms, long userId, int page)
|
|
public static InlineKeyboardMarkup RoomsKeyboard(List<GameRoom> rooms, long userId, int page)
|
|
@@ -364,6 +374,15 @@ namespace MafiaTelegramBot.Resources
|
|
{
|
|
{
|
|
new[]{ InlineKeyboardButton.WithCallbackData(strings.pack_open, $"{Callback.PackOpen}|{userId}") },
|
|
new[]{ InlineKeyboardButton.WithCallbackData(strings.pack_open, $"{Callback.PackOpen}|{userId}") },
|
|
new[]{ InlineKeyboardButton.WithCallbackData(strings.pack_info, $"{Callback.PackInfo}|{userId}") },
|
|
new[]{ InlineKeyboardButton.WithCallbackData(strings.pack_info, $"{Callback.PackInfo}|{userId}") },
|
|
|
|
+ new[] { InlineKeyboardButton.WithCallbackData(strings.back_to_profile, $"{Callback.BackToProfile}|{userId}") }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static InlineKeyboardMarkup BackButton(long userId)
|
|
|
|
+ {
|
|
|
|
+ return new InlineKeyboardMarkup(new[]
|
|
|
|
+ {
|
|
|
|
+ InlineKeyboardButton.WithCallbackData(strings.back_to_profile, $"{Callback.BackToProfile}|{userId}")
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|