Class: TD::Types::DraftMessage

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/draft_message.rb

Overview

Contains information about a message draft.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#dateInteger

Point in time (Unix timestamp) when the draft was created.

Returns:

  • (Integer)

    the current value of date



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

def date
  @date
end

#input_message_textTD::Types::InputMessageContent

Content of the message draft; this should always be of type inputMessageText.

Returns:



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

def input_message_text
  @input_message_text
end

#reply_to_message_idInteger

Identifier of the message to reply to; 0 if none.

Returns:

  • (Integer)

    the current value of reply_to_message_id



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

def reply_to_message_id
  @reply_to_message_id
end