Closed romkaqua closed 8 years ago
Hi! I will add Bot API 2.0 support in next release. Thanks!
Please, have a look in my fork, I have implement some 2.0 features. https://github.com/drecchia/java-telegram-bot-api
Ex:
Keyboard kb = new InlineKeyboardMarkup(new InlineKeyboardButton[]{new InlineKeyboardButton("AAA0001", null, "AAA0001", null)});
bot.sendMessage( message.chat().id(), "Inline button test:", ParseMode.Markdown, false, null, kb );
I will submit a pull request. Thanks
Added in 2.0.0
Keyboard keyboard = new ReplyKeyboardMarkup(
new KeyboardButton[]{
new KeyboardButton("text"),
new KeyboardButton("contact").requestContact(true),
new KeyboardButton("location").requestLocation(true)
}
);
Hello! I need to send field "request_location" in object "KeyboardButton". How i can do that? Thank you.