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:



12
13
14
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12

def content
  @content
end

#is_outgoingBoolean

True, if the message is outgoing.

Returns:

  • (Boolean)

    the current value of is_outgoing



12
13
14
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12

def is_outgoing
  @is_outgoing
end

#message_idInteger

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

Returns:

  • (Integer)

    the current value of message_id



12
13
14
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12

def message_id
  @message_id
end

#senderTD::Types::MessageSender

The sender of the message. Corresponding user or chat may be inaccessible.

Returns:



12
13
14
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12

def sender
  @sender
end

#sender_nameTD::Types::String

Name of the sender.

Returns:

  • (TD::Types::String)

    the current value of sender_name



12
13
14
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12

def sender_name
  @sender_name
end