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



14
15
16
# File 'lib/tdlib/types/message_forward_info.rb', line 14

def date
  @date
end

#from_chat_idInteger

For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, 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



14
15
16
# File 'lib/tdlib/types/message_forward_info.rb', line 14

def from_chat_id
  @from_chat_id
end

#from_message_idInteger

For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, 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



14
15
16
# File 'lib/tdlib/types/message_forward_info.rb', line 14

def from_message_id
  @from_message_id
end

#originTD::Types::MessageForwardOrigin

Origin of a forwarded message.

Returns:



14
15
16
# File 'lib/tdlib/types/message_forward_info.rb', line 14

def origin
  @origin
end

#public_service_announcement_typeTD::Types::String

The type of a public service announcement for the forwarded message.

Returns:

  • (TD::Types::String)

    the current value of public_service_announcement_type



14
15
16
# File 'lib/tdlib/types/message_forward_info.rb', line 14

def public_service_announcement_type
  @public_service_announcement_type
end