public static class SendableGameMessage.SendableGameMessageBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SendableGameMessage |
build()
Builds the SendableGameMessage object
|
SendableGameMessage.SendableGameMessageBuilder |
disableNotification(boolean disableNotification)
*Optional*
Sets whether or not to disable any notification this message might usually cause.
|
SendableGameMessage.SendableGameMessageBuilder |
gameShortName(String gameShortName)
*Required*
Sets the name relating to the game that is being sent
|
SendableGameMessage.SendableGameMessageBuilder |
replyMarkup(ReplyMarkup replyMarkup)
*Optional*
Sets the ReplyMarkup that you want to send with the message
|
SendableGameMessage.SendableGameMessageBuilder |
replyTo(long replyTo)
*Optional*
Sets the ID of the message you want to reply to
|
SendableGameMessage.SendableGameMessageBuilder |
replyTo(Message replyTo)
*Optional*
Sets the Message object that you want to reply to
|
public SendableGameMessage.SendableGameMessageBuilder gameShortName(String gameShortName)
gameShortName - The name of the game that you are sendingpublic SendableGameMessage.SendableGameMessageBuilder replyTo(Message replyTo)
replyTo - The Message object you want to reply topublic SendableGameMessage.SendableGameMessageBuilder replyTo(long replyTo)
replyTo - The ID of the message you want to reply topublic SendableGameMessage.SendableGameMessageBuilder replyMarkup(ReplyMarkup replyMarkup)
replyMarkup - The ReplyMarkup you want to send with the messagepublic SendableGameMessage.SendableGameMessageBuilder disableNotification(boolean disableNotification)
disableNotification - True to disable notifications for this message, False otherwisepublic SendableGameMessage build()
Copyright © 2017. All rights reserved.