Class: TD::Types::Background
- Defined in:
- lib/tdlib/types/background.rb
Overview
Describes a chat background.
Instance Attribute Summary collapse
-
#document ⇒ TD::Types::Document?
Document with the background; may be null.
-
#id ⇒ Integer
Unique background identifier.
-
#is_dark ⇒ Boolean
True, if the background is dark and is recommended to be used with dark theme.
-
#is_default ⇒ Boolean
True, if this is one of default backgrounds.
-
#name ⇒ TD::Types::String
Unique background name.
-
#type ⇒ TD::Types::BackgroundType
Type of the background.
Method Summary
Methods inherited from Base
Instance Attribute Details
#document ⇒ TD::Types::Document?
Document with the background; may be null. Null only for filled backgrounds.
11 12 13 |
# File 'lib/tdlib/types/background.rb', line 11 def document @document end |
#id ⇒ Integer
Unique background identifier.
11 12 13 |
# File 'lib/tdlib/types/background.rb', line 11 def id @id end |
#is_dark ⇒ Boolean
True, if the background is dark and is recommended to be used with dark theme.
11 12 13 |
# File 'lib/tdlib/types/background.rb', line 11 def is_dark @is_dark end |
#is_default ⇒ Boolean
True, if this is one of default backgrounds.
11 12 13 |
# File 'lib/tdlib/types/background.rb', line 11 def is_default @is_default end |
#name ⇒ TD::Types::String
Unique background name.
11 12 13 |
# File 'lib/tdlib/types/background.rb', line 11 def name @name end |
#type ⇒ TD::Types::BackgroundType
Type of the background.
11 12 13 |
# File 'lib/tdlib/types/background.rb', line 11 def type @type end |