public async Task <Message> WelcomeMessage(Message message) { var PromptMessage = "🔘 چه عملیاتی انجام شود؟"; _vsService.AddViewState(message, States.Welcome); var replyKeyboard = new ReplyKeyboardMarkup(new[] { new [] // first row { new KeyboardButton("🔑 ورود به سیستم") }, new [] // second row { new KeyboardButton("📂 ثبتنام") }, new[] // last row { new KeyboardButton("✅ درباره ما"), new KeyboardButton("📚 راهنما"), new KeyboardButton("💌 تماس با ما") } }); return(await MyBot.Api.SendTextMessageAsync(message.Chat.Id, PromptMessage, false, false, 0, replyKeyboard)); }
public async Task <Message> HomePageMessage(Message message) { var PromptMessage = "🏛 چه عملیاتی انجام شود؟"; _vsService.AddViewState(message, States.Home); var replyKeyboard = new ReplyKeyboardMarkup(new[] { new [] { new KeyboardButton("🖼 تصویر نمونه"), new KeyboardButton("📙 فایل نمونه"), }, new [] { new KeyboardButton("🎥 ویدئوی نمونه"), new KeyboardButton("🎶 آهنگ نمونه"), }, new [] { new KeyboardButton("🌐") { RequestLocation = true }, new KeyboardButton("📞") { RequestContact = true }, }, new[] { new KeyboardButton("✅ درباره ما"), new KeyboardButton("💌 تماس با ما") }, new[] // last row { new KeyboardButton("❌ خروج"), new KeyboardButton("📚 راهنما") } }); return(await MyBot.Api.SendTextMessageAsync(message.Chat.Id, PromptMessage, false, false, 0, replyKeyboard)); }