Class: TD::Types::MessageForwardInfo

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

Overview

Contains information about a forwarded message.

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 message was originally sent.

Returns:

  • (Integer)

    the current value of date



11
12
13
# File 'lib/tdlib/types/message_forward_info.rb', line 11

def date
  @date
end

#from_chat_idInteger

For messages forwarded to the chat with the current user (Saved Messages) or to the channel's discussion group, the identifier of the chat from which the message was forwarded last time; 0 if unknown.

Returns:

  • (Integer)

    the current value of from_chat_id



11
12
13
# File 'lib/tdlib/types/message_forward_info.rb', line 11

def from_chat_id
  @from_chat_id
end

#from_message_idInteger

For messages forwarded to the chat with the current user (Saved Messages) or to the channel's discussion group, the identifier of the original message from which the new message was forwarded last time; 0 if unknown.

Returns:

  • (Integer)

    the current value of from_message_id



11
12
13
# File 'lib/tdlib/types/message_forward_info.rb', line 11

def from_message_id
  @from_message_id
end

#originTD::Types::MessageForwardOrigin

Origin of a forwarded message.

Returns:



11
12
13
# File 'lib/tdlib/types/message_forward_info.rb', line 11

def origin
  @origin
end