public class OutgoingGameMessage extends OutgoingMessage
chatId, disableNotification, replyToMessageId| Constructor and Description |
|---|
OutgoingGameMessage() |
OutgoingGameMessage(String chatId,
Long replyToMessageId,
String gameShortName,
Boolean disableNotification,
InlineKeyboardMarkup replyMarkup)
Builds
OutgoingGameMessage instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getGameShortName() |
InlineKeyboardMarkup |
getReplyMarkup() |
void |
setGameShortName(String gameShortName) |
void |
setReplyMarkup(InlineKeyboardMarkup replyMarkup) |
String |
toString() |
getChatId, getDisableNotification, getReplyToMessageId, setChatId, setDisableNotification, setReplyToMessageIdpublic OutgoingGameMessage(String chatId, Long replyToMessageId, String gameShortName, Boolean disableNotification, InlineKeyboardMarkup replyMarkup)
OutgoingGameMessage instance.chatId - Unique identifier for the target chat.replyToMessageId - If the message is a reply, ID of the original message.gameShortName - Short name of the game, serves as the unique identifier for the game.disableNotification - Sends the message silently. Users will receive a notification with no sound.replyMarkup - An inline keyboard that appears right next to the message it belongs to. If empty, one
‘Play game_title’ button will be shown. If not empty, the first button must launch the
game.public OutgoingGameMessage()
public void setGameShortName(String gameShortName)
public void setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public String getGameShortName()
public InlineKeyboardMarkup getReplyMarkup()
public String toString()
toString in class OutgoingMessageApache Camel