Class: TD::Types::MessageContent::GameScore

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/game_score.rb

Overview

A new high score was achieved in a game.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#game_idInteger

Identifier of the game; may be different from the games presented in the message with the game.

Returns:

  • (Integer)

    the current value of game_id



8
9
10
# File 'lib/tdlib/types/message_content/game_score.rb', line 8

def game_id
  @game_id
end

#game_message_idInteger

Identifier of the message with the game, can be an identifier of a deleted message.

Returns:

  • (Integer)

    the current value of game_message_id



8
9
10
# File 'lib/tdlib/types/message_content/game_score.rb', line 8

def game_message_id
  @game_message_id
end

#scoreInteger

New score.

Returns:

  • (Integer)

    the current value of score



8
9
10
# File 'lib/tdlib/types/message_content/game_score.rb', line 8

def score
  @score
end