1234567891011121314151617 |
- 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)
- {
- await Bot.Get().SendChatActionAsync(update.Message.Chat.Id, ChatAction.Typing);
- return await Bot.Get().SendTextMessageAsync(update.Message.Chat.Id, strings.create_game);
- }
- }
- }
|