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

#descriptionTD::Types::String

Game description.

Returns:

  • (TD::Types::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_nameTD::Types::String

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

Returns:

  • (TD::Types::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

#titleTD::Types::String

Game title.

Returns:

  • (TD::Types::String)

    the current value of title



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

def title
  @title
end