Class: TD::Types::Update::ChatLastMessage

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

Overview

The last message of a chat was changed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Chat identifier.

Returns:

  • (Integer)

    the current value of chat_id



10
11
12
# File 'lib/tdlib/types/update/chat_last_message.rb', line 10

def chat_id
  @chat_id
end

#last_messageTD::Types::Message?

The new last message in the chat; may be null if the last message became unknown. While the last message is unknown, new messages can be added to the chat without corresponding NewMessage update.

Returns:



10
11
12
# File 'lib/tdlib/types/update/chat_last_message.rb', line 10

def last_message
  @last_message
end

#positionsArray<TD::Types::ChatPosition>

The new chat positions in the chat lists.

Returns:



10
11
12
# File 'lib/tdlib/types/update/chat_last_message.rb', line 10

def positions
  @positions
end