123456789101112131415161718 |
- using System.Threading.Tasks;
- using Telegram.Bot;
- using Telegram.Bot.Types;
- using Telegram.Bot.Types.Enums;
- namespace MafiaTelegramBot.Models.Commands
- {
- public class CreateGameCommand : Command
- {
- protected override string Name => strings.create_game;
- protected override async Task<Message> Execute(Update update, TelegramBotClient client)
- {
- var chatId = update.Message.Chat.Id;
- await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
- return await Bot.Get().SendTextMessageAsync(chatId, Name);
- }
- }
- }
|