Class: TD::Types::Update::ChatReadInbox

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

Overview

Incoming messages were read or number of unread messages has been 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



7
8
9
# File 'lib/tdlib/types/update/chat_read_inbox.rb', line 7

def chat_id
  @chat_id
end

#last_read_inbox_message_idInteger

Identifier of the last read incoming message.

Returns:

  • (Integer)

    the current value of last_read_inbox_message_id



7
8
9
# File 'lib/tdlib/types/update/chat_read_inbox.rb', line 7

def last_read_inbox_message_id
  @last_read_inbox_message_id
end

#unread_countInteger

The number of unread messages left in the chat.

Returns:

  • (Integer)

    the current value of unread_count



7
8
9
# File 'lib/tdlib/types/update/chat_read_inbox.rb', line 7

def unread_count
  @unread_count
end