Class OutgoingSetGameScoreMessage
java.lang.Object
org.apache.camel.component.telegram.model.OutgoingMessage
org.apache.camel.component.telegram.model.OutgoingSetGameScoreMessage
- All Implemented Interfaces:
Serializable
Message used this method to set the score of the specified user in a game.
-
Field Summary
Fields inherited from class org.apache.camel.component.telegram.model.OutgoingMessage
chatId, disableNotification, replyToMessageId
-
Constructor Summary
ConstructorsConstructorDescriptionOutgoingSetGameScoreMessage
(String chatId, Long userId, Long score, Boolean force, Boolean disableEditMessage, Long messageId, String inlineMessageId) BuildsOutgoingSetGameScoreMessage
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetForce()
getScore()
void
setDisableEditMessage
(Boolean disableEditMessage) void
void
setInlineMessageId
(String inlineMessageId) void
setMessageId
(Long messageId) void
void
toString()
Methods inherited from class org.apache.camel.component.telegram.model.OutgoingMessage
getChatId, getDisableNotification, getReplyToMessageId, setChatId, setDisableNotification, setReplyToMessageId
-
Constructor Details
-
OutgoingSetGameScoreMessage
public OutgoingSetGameScoreMessage(String chatId, Long userId, Long score, Boolean force, Boolean disableEditMessage, Long messageId, String inlineMessageId) BuildsOutgoingSetGameScoreMessage
instance.- Parameters:
userId
- User identifierscore
- New score, must be non-negativeforce
- Pass True, if the high score is allowed to decreasesdisableEditMessage
- Pass True, if the game message should not be automatically edited to include the current scoreboardmessageId
- Required if inline_message_id is not specified. Identifier of the sent messageinlineMessageId
- Required if chat_id and message_id are not specified. Identifier of the inline message
-
OutgoingSetGameScoreMessage
public OutgoingSetGameScoreMessage()
-
-
Method Details
-
getUserId
-
setUserId
-
getScore
-
setScore
-
getForce
-
setForce
-
getDisableEditMessage
-
setDisableEditMessage
-
getMessageId
-
setMessageId
-
getInlineMessageId
-
setInlineMessageId
-
toString
- Overrides:
toString
in classOutgoingMessage
-