Class InlineQueryResultGame
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultGame
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultGame extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a Game
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultGame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGameShortName()StringgetId()InlineKeyboardMarkupgetReplyMarkup()StringgetType()voidsetGameShortName(String gameShortName)InlineQueryResultGamesetId(String id)InlineQueryResultGamesetReplyMarkup(InlineKeyboardMarkup replyMarkup)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultGame setId(String id)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultGame setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getGameShortName
public String getGameShortName()
-
setGameShortName
public void setGameShortName(String gameShortName)
-
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
-
-