Class: TD::Types::NotificationType::NewPushMessage

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

Overview

New message was received through a push notification.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#contentTD::Types::PushMessageContent

Push message content.

Returns:



10
11
12
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 10

def content
  @content
end

#message_idInteger

The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages and as reply_to_message_id.

Returns:

  • (Integer)

    the current value of message_id



10
11
12
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 10

def message_id
  @message_id
end

#sender_user_idInteger

Sender of the message. Corresponding user may be inaccessible.

Returns:

  • (Integer)

    the current value of sender_user_id



10
11
12
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 10

def sender_user_id
  @sender_user_id
end