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
-
Constructor Summary
ConstructorsConstructorDescriptionSetGameScore(long chat_id, long user_id, int score, int message_id, Api api) RequiredSetGameScore(String inline_message_id, long user_id, int score, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptiondisableEditMessage(boolean disable_edit_message) Optionalforce(boolean force) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SetGameScore
Required- Parameters:
chat_id- chat iduser_id- user idscore- scoremessage_id- message idapi- api- See Also:
-
SetGameScore
-
-
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:
disable_edit_message- Pass True if the game message should not be automatically edited to include the current scoreboard- Returns:
SetGameScore
-