CreateGameCommand.cs 585 B

1234567891011121314151617
  1. using System.Threading.Tasks;
  2. using Telegram.Bot;
  3. using Telegram.Bot.Types;
  4. using Telegram.Bot.Types.Enums;
  5. namespace MafiaTelegramBot.Models.Commands
  6. {
  7. public class CreateGameCommand : Command
  8. {
  9. protected override string Name => strings.create_game;
  10. protected override async Task<Message> Execute(Update update, TelegramBotClient client)
  11. {
  12. await Bot.Get().SendChatActionAsync(update.Message.Chat.Id, ChatAction.Typing);
  13. return await Bot.Get().SendTextMessageAsync(update.Message.Chat.Id, strings.create_game);
  14. }
  15. }
  16. }