Class: TD::Types::Background

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

Overview

Describes a chat background.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#documentTD::Types::Document?

Document with the background; may be null. Null only for filled backgrounds.

Returns:



11
12
13
# File 'lib/tdlib/types/background.rb', line 11

def document
  @document
end

#idInteger

Unique background identifier.

Returns:

  • (Integer)

    the current value of id



11
12
13
# File 'lib/tdlib/types/background.rb', line 11

def id
  @id
end

#is_darkBoolean

True, if the background is dark and is recommended to be used with dark theme.

Returns:

  • (Boolean)

    the current value of is_dark



11
12
13
# File 'lib/tdlib/types/background.rb', line 11

def is_dark
  @is_dark
end

#is_defaultBoolean

True, if this is one of default backgrounds.

Returns:

  • (Boolean)

    the current value of is_default



11
12
13
# File 'lib/tdlib/types/background.rb', line 11

def is_default
  @is_default
end

#nameString

Unique background name.

Returns:

  • (String)

    the current value of name



11
12
13
# File 'lib/tdlib/types/background.rb', line 11

def name
  @name
end

#typeTD::Types::BackgroundType

Type of the background.

Returns:



11
12
13
# File 'lib/tdlib/types/background.rb', line 11

def type
  @type
end