public ReplyKeyboardMarkup(KeyboardButton[][] keyboard, bool resizeKeyboard = false,
     bool oneTimeKeyboard = false)
 {
     Keyboard = keyboard;
     ResizeKeyboard = resizeKeyboard;
     OneTimeKeyboard = oneTimeKeyboard;
 }
 public ReplyKeyboardMarkup(KeyboardButton[] keyboardRow, bool resizeKeyboard = false,
     bool oneTimeKeyboard = false)
 {
     Keyboard = new[]
     {
         keyboardRow
     };
     ResizeKeyboard = resizeKeyboard;
     OneTimeKeyboard = oneTimeKeyboard;
 }
Esempio n. 3
0
 private KeyboardButton SendTelephoneNumber()
 {
     Telegram.Bot.Types.KeyboardButton btn = new Telegram.Bot.Types.KeyboardButton("Отправить номер телефона");
     btn.RequestContact = true;
     return(btn);
 }