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



10
11
12
# File 'lib/tdlib/types/draft_message.rb', line 10

def date
  @date
end

#effect_idInteger

Identifier of the effect to apply to the message when it is sent; 0 if none.

Returns:

  • (Integer)

    the current value of effect_id



10
11
12
# File 'lib/tdlib/types/draft_message.rb', line 10

def effect_id
  @effect_id
end

#input_message_textTD::Types::InputMessageContent

Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.

Returns:



10
11
12
# File 'lib/tdlib/types/draft_message.rb', line 10

def input_message_text
  @input_message_text
end

#reply_toTD::Types::InputMessageReplyTo?

Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.

Returns:



10
11
12
# File 'lib/tdlib/types/draft_message.rb', line 10

def reply_to
  @reply_to
end