Class OutgoingGameMessage
java.lang.Object
org.apache.camel.component.telegram.model.OutgoingMessage
org.apache.camel.component.telegram.model.OutgoingGameMessage
- All Implemented Interfaces:
Serializable
Used to send a game.
-
Field Summary
Fields inherited from class org.apache.camel.component.telegram.model.OutgoingMessage
chatId, disableNotification, replyToMessageId
-
Constructor Summary
ConstructorsConstructorDescriptionOutgoingGameMessage
(String chatId, Long replyToMessageId, String gameShortName, Boolean disableNotification, InlineKeyboardMarkup replyMarkup) BuildsOutgoingGameMessage
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setGameShortName
(String gameShortName) void
setReplyMarkup
(InlineKeyboardMarkup replyMarkup) toString()
Methods inherited from class org.apache.camel.component.telegram.model.OutgoingMessage
getChatId, getDisableNotification, getReplyToMessageId, setChatId, setDisableNotification, setReplyToMessageId
-
Constructor Details
-
OutgoingGameMessage
public OutgoingGameMessage(String chatId, Long replyToMessageId, String gameShortName, Boolean disableNotification, InlineKeyboardMarkup replyMarkup) BuildsOutgoingGameMessage
instance.- Parameters:
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.
-
OutgoingGameMessage
public OutgoingGameMessage()
-
-
Method Details
-
setGameShortName
-
setReplyMarkup
-
getGameShortName
-
getReplyMarkup
-
toString
- Overrides:
toString
in classOutgoingMessage
-