Class: TD::Types::NotificationType::NewMessage

Inherits:
TD::Types::NotificationType show all
Defined in:
lib/tdlib/types/notification_type/new_message.rb

Overview

New message was received.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#messageTD::Types::Message

The message.

Returns:



6
7
8
# File 'lib/tdlib/types/notification_type/new_message.rb', line 6

def message
  @message
end

#show_previewBoolean

True, if message content must be displayed in notifications.

Returns:

  • (Boolean)

    the current value of show_preview



6
7
8
# File 'lib/tdlib/types/notification_type/new_message.rb', line 6

def show_preview
  @show_preview
end