|
@@ -1,6 +1,7 @@
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
using Telegram.Bot.Types;
|
|
using Telegram.Bot.Types;
|
|
using Telegram.Bot.Types.Enums;
|
|
using Telegram.Bot.Types.Enums;
|
|
|
|
+using Telegram.Bot.Types.ReplyMarkups;
|
|
|
|
|
|
namespace MafiaTelegramBot.Models.Commands
|
|
namespace MafiaTelegramBot.Models.Commands
|
|
{
|
|
{
|
|
@@ -11,7 +12,16 @@ namespace MafiaTelegramBot.Models.Commands
|
|
{
|
|
{
|
|
var chatId = update.Message.Chat.Id;
|
|
var chatId = update.Message.Chat.Id;
|
|
await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
|
|
await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
|
|
- return await Bot.Get().SendTextMessageAsync(chatId, Name);
|
|
|
|
|
|
+
|
|
|
|
+ var message = "Задайте настройки комнаты";
|
|
|
|
+
|
|
|
|
+ var inlineKeyboard = new InlineKeyboardMarkup(new[]
|
|
|
|
+ {
|
|
|
|
+ new[] {InlineKeyboardButton.WithCallbackData(strings.make_public_room, strings.make_public_room_callback)},
|
|
|
|
+ new[] {InlineKeyboardButton.WithCallbackData(strings.make_private_room, strings.make_private_room_callback)}
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ return await Bot.Get().SendTextMessageAsync(chatId, message, replyMarkup: inlineKeyboard);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|