Class: TD::Types::Update::ChatPosition

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

Overview

The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent.

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



8
9
10
# File 'lib/tdlib/types/update/chat_position.rb', line 8

def chat_id
  @chat_id
end

#positionTD::Types::ChatPosition

New chat position. If new order is 0, then the chat needs to be removed from the list.

Returns:



8
9
10
# File 'lib/tdlib/types/update/chat_position.rb', line 8

def position
  @position
end