Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited , otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
643 matches
60 actions
Telegram
60 actions
- post_addStickerToSetPOSTv1.0.0
- post_answerInlineQueryPOSTv1.0.0
- post_answerPreCheckoutQueryPOSTv1.0.0
- post_closePOSTv1.0.0
- post_copyMessagePOSTv1.0.0
- post_createNewStickerSetPOSTv1.0.0
- post_editMessageCaptionPOSTv1.0.0
- post_editMessageLiveLocationPOSTv1.0.0
- post_editMessageMediaPOSTv1.0.0
- post_editMessageReplyMarkupPOSTv1.0.0
- post_editMessageTextPOSTv1.0.0
- post_forwardMessagePOSTv1.0.0
- post_getChatPOSTv1.0.0
- post_getChatAdministratorsPOSTv1.0.0
- post_getChatMemberPOSTv1.0.0
- post_getChatMembersCountPOSTv1.0.0
- post_getFilePOSTv1.0.0
- post_getGameHighScoresPOSTv1.0.0
- post_getMePOSTv1.0.0
- post_getMyCommandsPOSTv1.0.0
- post_getStickerSetPOSTv1.0.0
- post_getUpdatesPOSTv1.0.0
- post_getUserProfilePhotosPOSTv1.0.0
- post_kickChatMemberPOSTv1.0.0
- post_leaveChatPOSTv1.0.0
- post_logOutPOSTv1.0.0
- post_pinChatMessagePOSTv1.0.0
- post_promoteChatMemberPOSTv1.0.0
- post_restrictChatMemberPOSTv1.0.0
- post_sendAnimationPOSTv1.0.0
- post_sendAudioPOSTv1.0.0
- post_sendChatActionPOSTv1.0.0
- post_sendContactPOSTv1.0.0
- post_sendDicePOSTv1.0.0
- post_sendDocumentPOSTv1.0.0
- post_sendGamePOSTv1.0.0
- post_sendInvoicePOSTv1.0.0
- post_sendLocationPOSTv1.0.0
- post_sendMediaGroupPOSTv1.0.0
- post_sendMessagePOSTv1.0.0
- post_sendPhotoPOSTv1.0.0
- post_sendPollPOSTv1.0.0
- post_sendStickerPOSTv1.0.0
- post_sendVenuePOSTv1.0.0
- post_sendVideoPOSTv1.0.0
- post_sendVideoNotePOSTv1.0.0
- post_sendVoicePOSTv1.0.0
- post_setChatAdministratorCustomTitlePOSTv1.0.0
- post_setChatDescriptionPOSTv1.0.0
- post_setChatPermissionsPOSTv1.0.0
- post_setChatPhotoPOSTv1.0.0
- post_setChatStickerSetPOSTv1.0.0
- post_setChatTitlePOSTv1.0.0
- post_setGameScorePOSTv1.0.0
- post_setMyCommandsPOSTv1.0.0
- post_setPassportDataErrorsPOSTv1.0.0
- post_setStickerPositionInSetPOSTv1.0.0
- post_setStickerSetThumbPOSTv1.0.0
- post_stopMessageLiveLocationPOSTv1.0.0
- post_stopPollPOSTv1.0.0
Communication/Telegram
post_setGameScore
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
{
"type": "object",
"required": [
"score",
"user_id"
],
"properties": {
"chat_id": {
"type": "integer",
"description": "Required if *inline\\_message\\_id* is not specified. Unique identifier for the target chat"
},
"disable_edit_message": {
"type": "boolean",
"description": "Pass True, if the game message should not be automatically edited to include the current scoreboard"
},
"force": {
"type": "boolean",
"description": "Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"
},
"inline_message_id": {
"type": "string",
"description": "Required if *chat\\_id* and *message\\_id* are not specified. Identifier of the inline message"
},
"message_id": {
"type": "integer",
"description": "Required if *inline\\_message\\_id* is not specified. Identifier of the sent message"
},
"score": {
"type": "integer",
"description": "New score, must be non-negative"
},
"user_id": {
"type": "integer",
"description": "User identifier"
}
}
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
{
"type": "object",
"required": [
"ok",
"result"
],
"properties": {
"ok": {
"type": "boolean"
},
"result": {
"type": "object"
}
}
}