Class InlineKeyboardMarkup
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,ReplyKeyboard
public class InlineKeyboardMarkup extends Object implements ReplyKeyboard
- Version:
- 1.0 This object represents an inline keyboard that appears right next to the message it belongs to.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineKeyboardMarkup()InlineKeyboardMarkup(List<List<InlineKeyboardButton>> keyboard)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<List<InlineKeyboardButton>>getKeyboard()inthashCode()InlineKeyboardMarkupsetKeyboard(List<List<InlineKeyboardButton>> keyboard)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Constructor Detail
-
InlineKeyboardMarkup
public InlineKeyboardMarkup()
-
InlineKeyboardMarkup
public InlineKeyboardMarkup(List<List<InlineKeyboardButton>> keyboard)
-
-
Method Detail
-
getKeyboard
public List<List<InlineKeyboardButton>> getKeyboard()
-
setKeyboard
public InlineKeyboardMarkup setKeyboard(List<List<InlineKeyboardButton>> keyboard)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-