Пример #1
0
            public MessageDataBuilder SetInlineKeyboardMarkup(Action <InlineKeyboardMarkup.InlineKeyboardMarkupBuilder> action)
            {
                var builder = InlineKeyboardMarkup.Builder();

                action(builder);
                _replyMarkup = builder.Build();
                return(this);
            }
Пример #2
0
 public HandlerResultBuilder InlineKeyboard(Func <InlineKeyboardMarkup.InlineKeyboardMarkupBuilder, InlineKeyboardMarkup.InlineKeyboardMarkupBuilder> factory)
 {
     _inlineKeyboardMarkup = factory(InlineKeyboardMarkup.Builder()).Build();
     return(this);
 }