public InlineKeyboardBuilder AddRow(Action <KeyboardRow <InlineKeyboardButton> > rowBuilder) { var newRow = new KeyboardRow <InlineKeyboardButton>(); rowBuilder(newRow); _rows.Add(newRow); return(this); }
public static KeyboardRow <KeyboardButton> AddLocationButton( this KeyboardRow <KeyboardButton> rowBuilder, string text) => rowBuilder.AddButton(KeyboardButton.WithRequestLocation(text));
public static KeyboardRow <InlineKeyboardButton> AddPaymentButton( this KeyboardRow <InlineKeyboardButton> rowBuilder, string text) => rowBuilder.AddButton(InlineKeyboardButton.WithPayment(text));
public static KeyboardRow <InlineKeyboardButton> AddSwitchInlineQueryCurrentChatButton( this KeyboardRow <InlineKeyboardButton> rowBuilder, string text, string query = "") => rowBuilder.AddButton(InlineKeyboardButton.WithSwitchInlineQueryCurrentChat(text, query));
public static KeyboardRow <InlineKeyboardButton> AddCallbackDataButton( this KeyboardRow <InlineKeyboardButton> rowBuilder, string titleAndData) => rowBuilder.AddButton(InlineKeyboardButton.WithCallbackData(titleAndData));
public static KeyboardRow <InlineKeyboardButton> AddUrlButton( this KeyboardRow <InlineKeyboardButton> rowBuilder, string title, string url) => rowBuilder.AddButton(InlineKeyboardButton.WithUrl(title, url));
public static KeyboardRow <KeyboardButton> AddTextButton( this KeyboardRow <KeyboardButton> rowBuilder, string title) => rowBuilder.AddButton(title);
public static KeyboardRow <KeyboardButton> AddContactButton( this KeyboardRow <KeyboardButton> rowBuilder, string text) => rowBuilder.AddButton(KeyboardButton.WithRequestContact(text));