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 application 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

#typeTD::Types::String

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:

  • (TD::Types::String)

    the current value of type



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

def type
  @type
end