Class: TD::Types::Update::ChatDraftMessage

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

Overview

A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn’t be applied.

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_draft_message.rb', line 9

def chat_id
  @chat_id
end

#draft_messageTD::Types::DraftMessage?

The new draft message; may be null.

Returns:



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

def draft_message
  @draft_message
end

#positionsArray<TD::Types::ChatPosition>

The new chat positions in the chat lists.

Returns:



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

def positions
  @positions
end