Tigran преди 4 години
родител
ревизия
03dbb6c69d
променени са 1 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 7 7
      MafiaTelegramBot/Models/Inlines/ShopMenuQuery.cs

+ 7 - 7
MafiaTelegramBot/Models/Inlines/ShopMenuQuery.cs

@@ -11,13 +11,13 @@ namespace MafiaTelegramBot.Models.Inlines
 
         protected override async Task<Message> Execute(Update update)
         {
-            /*await DeletePreviousMessage(ChatId, update.CallbackQuery.Message.MessageId);
-            var user = await UserDao.GetPlayerById(UserId);
-            if (user.OpenedRoles.AllRolesOpened())
-                return await Bot.SendWithMarkdown2(ChatId, strings.you_already_open_all_roles);
-            return await Bot.Get().SendInvoiceAsync(ChatId, strings.random_role_payment,
-                strings.random_role_description, $"{Payloads.RandomRole}|{UserId}",
-                AppSettings.ProviderToken, Constants.SHOP_CURRENCY, Constants.RANDOM_ROLE_PRICE);*/
+            await DeletePreviousMessage(ChatId, update.CallbackQuery.Message.MessageId);
+            // var user = await UserDao.GetPlayerById(UserId);
+            // if (user.OpenedRoles.AllRolesOpened())
+            //     return await Bot.SendWithMarkdown2(ChatId, strings.you_already_open_all_roles);
+            // return await Bot.Get().SendInvoiceAsync(ChatId, strings.random_role_payment,
+            //     strings.random_role_description, $"{Payloads.RandomRole}|{UserId}",
+            //     AppSettings.ProviderToken, Constants.SHOP_CURRENCY, Constants.RANDOM_ROLE_PRICE);
             return await Bot.SendWithMarkdown2(ChatId, strings.work_in_progress, Keyboard.BackButton(UserId));
         }
     }