|
@@ -1,34 +0,0 @@
|
|
|
-using System.Threading.Tasks;
|
|
|
-using Telegram.Bot;
|
|
|
-using Telegram.Bot.Types;
|
|
|
-using Telegram.Bot.Types.Enums;
|
|
|
-using Telegram.Bot.Types.ReplyMarkups;
|
|
|
-
|
|
|
-namespace MafiaTelegramBot.Models.Commands
|
|
|
-{
|
|
|
- public class SendKeyboard : Command
|
|
|
- {
|
|
|
- protected override string Name => "/start";
|
|
|
-
|
|
|
- protected override async Task<Message> Execute(long chatId, TelegramBotClient client)
|
|
|
- {
|
|
|
- await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
|
|
|
- InlineKeyboardMarkup inlineKeyboard = new (new[]
|
|
|
- {
|
|
|
- new[]
|
|
|
- {
|
|
|
- InlineKeyboardButton.WithCallbackData(strings.create_game, "create_game")
|
|
|
- },
|
|
|
- new[]
|
|
|
- {
|
|
|
- InlineKeyboardButton.WithCallbackData(strings.connect_game, "connect_game")
|
|
|
- },
|
|
|
- new[]
|
|
|
- {
|
|
|
- InlineKeyboardButton.WithCallbackData(strings.show_profile, "show_profile")
|
|
|
- }
|
|
|
- });
|
|
|
- return await Bot.Get().SendTextMessageAsync(chatId, strings.start_message, replyMarkup: inlineKeyboard);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|