Class SetGameScore
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SetGameScore,Object>
io.github.natanimn.telebof.requests.set.SetGameScore
SetGameScore class.
- Since:
- 3 March 2025
- Version:
- 1.3.0
- Author:
- Natanim
-
Field Summary
Fields inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
api, methodName, parameters -
Constructor Summary
ConstructorsConstructorDescriptionSetGameScore(long chatId, long userId, int score, int messageId, Api api) RequiredSetGameScore(String inlineMessageId, long userId, int score, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptiondisableEditMessage(boolean disableEditMessage) Optionalforce(boolean force) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
add, exec, getContentType, getMethodName, getParameters, getResponseType, hasMultipart, setHasMultipart
-
Constructor Details
-
SetGameScore
Required- Parameters:
chatId- chat iduserId- user idscore- scoremessageId- message idapi- api- See Also:
-
SetGameScore
Required- Parameters:
inlineMessageId- inline message iduserId- user idscore- scoreapi- api- See Also:
-
-
Method Details
-
force
Optional- Parameters:
force- Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters- Returns:
SetGameScore
-
disableEditMessage
Optional- Parameters:
disableEditMessage- Pass True if the game message should not be automatically edited to include the current scoreboard- Returns:
SetGameScore
-