Class SetGameScoreMetod.
 Methods
create()
        
create(integer $userId, integer $score, integer $chatId, integer $messageId, array|null $data = null) : \TgBotApi\BotApiBase\Method\SetGameScoreMethod
Static
Parameters
$userId
integer
$score
integer
$chatId
integer
$messageId
integer
$data
arraynull
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
 | 
Returns
\TgBotApi\BotApiBase\Method\SetGameScoreMethod
  
 
createInline()
        
createInline(integer $userId, integer $score, string $inlineMessageId, array|null $data = null) : \TgBotApi\BotApiBase\Method\SetGameScoreMethod
Static
Parameters
$userId
integer
$score
integer
$inlineMessageId
string
$data
arraynull
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
 | 
Returns
\TgBotApi\BotApiBase\Method\SetGameScoreMethod
  
 
fill()
        
fill(array $data, array $forbidden = array()) 
Inherited
Parameters
$data
array
$forbidden
array
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
 | 
  
 
 Properties
 
Optional. Required if inline_message_id is not specified. Identifier of the sent message.
$chatId : integer | null
 
 
Optional. Pass True, if the game message should not be automatically edited to include the current scoreboard.
$disableEditMessage : boolean | null
 
 
Optional. Pass True, if the high score is allowed to decrease.
$force : boolean | null
This can be useful when fixing mistakes or banning cheaters.
 
 
 
Optional. Required if chat_id and message_id are not specified. Identifier of the inline message.
$inlineMessageId : string | null
 
 
Optional. Required if inline_message_id is not specified. Identifier of the sent message.
$messageId : integer | null
 
 
New score, must be non-negative.
$score : integer
 
 
User identifier.
$userId : integer