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