Class: TD::Types::Update::ServiceNotification

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/service_notification.rb

Overview

Service notification from the server. Upon receiving this the client must show a popup with the content of the notification.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#contentTD::Types::MessageContent

Notification content.

Returns:



9
10
11
# File 'lib/tdlib/types/update/service_notification.rb', line 9

def content
  @content
end

#typeString

Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" should be shown under notification; if user presses the second, all local data should be destroyed using Destroy method.

Returns:

  • (String)

    the current value of type



9
10
11
# File 'lib/tdlib/types/update/service_notification.rb', line 9

def type
  @type
end