Class: TD::Types::NotificationType::NewPushMessage
- Inherits:
-
TD::Types::NotificationType
- Object
- Dry::Struct
- Base
- TD::Types::NotificationType
- TD::Types::NotificationType::NewPushMessage
- Defined in:
- lib/tdlib/types/notification_type/new_push_message.rb
Overview
New message was received through a push notification.
Instance Attribute Summary collapse
-
#content ⇒ TD::Types::PushMessageContent
Push message content.
-
#is_outgoing ⇒ Boolean
True, if the message is outgoing.
-
#message_id ⇒ Integer
The message identifier.
-
#sender ⇒ TD::Types::MessageSender
The sender of the message.
-
#sender_name ⇒ TD::Types::String
Name of the sender.
Method Summary
Methods inherited from Base
Instance Attribute Details
#content ⇒ TD::Types::PushMessageContent
Push message content.
12 13 14 |
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12 def content @content end |
#is_outgoing ⇒ Boolean
True, if the message is outgoing.
12 13 14 |
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12 def is_outgoing @is_outgoing end |
#message_id ⇒ Integer
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.
12 13 14 |
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12 def @message_id end |
#sender ⇒ TD::Types::MessageSender
The sender of the message. Corresponding user or chat may be inaccessible.
12 13 14 |
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12 def sender @sender end |
#sender_name ⇒ TD::Types::String
Name of the sender.
12 13 14 |
# File 'lib/tdlib/types/notification_type/new_push_message.rb', line 12 def sender_name @sender_name end |