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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<List<InlineKeyboardButton>>
getKeyboard()
int
hashCode()
InlineKeyboardMarkup
setKeyboard(List<List<InlineKeyboardButton>> keyboard)
String
toString()
void
validate()
Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getKeyboard
public List<List<InlineKeyboardButton>> getKeyboard()
-
setKeyboard
public InlineKeyboardMarkup setKeyboard(List<List<InlineKeyboardButton>> keyboard)
-
validate
public void validate() throws TelegramApiValidationException
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
-