Class: TD::Types::MessageContent::ChatSetBackground

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

Overview

A new background was set in the chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#backgroundTD::Types::ChatBackground

The new background.

Returns:



9
10
11
# File 'lib/tdlib/types/message_content/chat_set_background.rb', line 9

def background
  @background
end

#old_background_message_idInteger

Identifier of the message with a previously set same background; 0 if none. Can be an identifier of a deleted message.

Returns:

  • (Integer)

    the current value of old_background_message_id



9
10
11
# File 'lib/tdlib/types/message_content/chat_set_background.rb', line 9

def old_background_message_id
  @old_background_message_id
end

#only_for_selfBoolean

True, if the background was set only for self.

Returns:

  • (Boolean)

    the current value of only_for_self



9
10
11
# File 'lib/tdlib/types/message_content/chat_set_background.rb', line 9

def only_for_self
  @only_for_self
end