12345678910111213141516171819202122232425262728 |
- #nullable enable
- using System;
- using System.Threading.Tasks;
- using Telegram.Bot.Types;
- namespace MafiaTelegramBot.Models.Payments
- {
- public abstract class Payment : UpdateModel<string>
- {
- protected override bool IsMatches(string command)
- {
- return command == Name;
- }
- public static Task<Message> Update(Update update)
- {
- throw new NotImplementedException();
- /*var payments = Bot.Payments;
- var message = update.PreCheckoutQuery;
- var userId = update.Message.From.Id;
- var chatId = update.Message.Chat.Id;
- await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
- var command = FirstOrDefault(payments, message);
- if(command != null) return await ((Payment?) command.Clone(chatId, userId))!.Execute(update);
- return await Bot.SendWithMarkdown2(chatId, $"{strings.command_not_found} _*({"message"})*_");*/
- }
- }
- }
|