SelectPrice.cs 832 B

123456789101112131415161718192021222324
  1. using System.Threading.Tasks;
  2. using CardCollector.Controllers;
  3. using CardCollector.DataBase.Entity;
  4. using CardCollector.Resources;
  5. using Telegram.Bot.Types;
  6. namespace CardCollector.Commands.CallbackQuery
  7. {
  8. public class SelectPrice : CallbackQueryCommand
  9. {
  10. protected override string CommandText => Command.select_price;
  11. protected override bool ClearMenu => false;
  12. protected override bool AddToStack => false;
  13. public override async Task Execute()
  14. {
  15. await MessageController.EditMessage(User, Messages.choose_price,
  16. User.Session.State == UserState.AuctionMenu ? Keyboard.GemsPriceOptions : Keyboard.CoinsPriceOptions);
  17. }
  18. public SelectPrice() { }
  19. public SelectPrice(UserEntity user, Update update) : base(user, update) { }
  20. }
  21. }