public CoreKeyboard AddButton(string text, CoreKeyboardButtonColor color, string payloadKey, string payloadValue) { var button = new CoreKeyboardButton { Title = text, Color = color }; button.SetPayload(payloadKey, payloadValue); LastLine.Add(button); return(this); }
public CoreKeyboard AddReturnToMenuButton(bool addNewLine = true) { if (addNewLine) { AddLine(); } var button = new CoreKeyboardButton { Title = ReturnToMainMenuText, Color = CoreKeyboardButtonColor.Default }; button.SetPayload("command", "start"); LastLine.Add(button); return(this); }