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. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case.

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



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

def chat_id
  @chat_id
end

#last_messageTD::Types::Message?

The new last message in the chat; may be null.

Returns:



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

def last_message
  @last_message
end

#positionsArray<TD::Types::ChatPosition>

The new chat positions in the chat lists.

Returns:



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

def positions
  @positions
end