Class: TD::Types::Game

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/game.rb

Overview

Describes a game.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationTD::Types::Animation?

Game animation; may be null.

Returns:



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def animation
  @animation
end

#descriptionString

Game description.

Returns:

  • (String)

    the current value of description



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def description
  @description
end

#idInteger

Game ID.

Returns:

  • (Integer)

    the current value of id



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def id
  @id
end

#photoTD::Types::Photo

Game photo.

Returns:



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def photo
  @photo
end

#short_nameString

Game short name. To share a game use the URL https://t.me/bot_username?game=game_short_name.

Returns:

  • (String)

    the current value of short_name



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def short_name
  @short_name
end

#textTD::Types::FormattedText

Game text, usually containing scoreboards for a game.

Returns:



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def text
  @text
end

#titleString

Game title.

Returns:

  • (String)

    the current value of title



12
13
14
# File 'lib/tdlib/types/game.rb', line 12

def title
  @title
end