Class: TD::Types::ForwardSource

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

Overview

Contains information about the last message from which a new message was forwarded last time.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.

Returns:

  • (Integer)

    the current value of chat_id



13
14
15
# File 'lib/tdlib/types/forward_source.rb', line 13

def chat_id
  @chat_id
end

#dateInteger

Point in time (Unix timestamp) when the message is sent; 0 if unknown.

Returns:

  • (Integer)

    the current value of date



13
14
15
# File 'lib/tdlib/types/forward_source.rb', line 13

def date
  @date
end

#is_outgoingBoolean

True, if the message that was forwarded is outgoing; always false if sender is unknown.

Returns:

  • (Boolean)

    the current value of is_outgoing



13
14
15
# File 'lib/tdlib/types/forward_source.rb', line 13

def is_outgoing
  @is_outgoing
end

#message_idInteger

Identifier of the message; may be 0 if unknown.

Returns:

  • (Integer)

    the current value of message_id



13
14
15
# File 'lib/tdlib/types/forward_source.rb', line 13

def message_id
  @message_id
end

#sender_idTD::Types::MessageSender?

Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.

Returns:



13
14
15
# File 'lib/tdlib/types/forward_source.rb', line 13

def sender_id
  @sender_id
end

#sender_nameTD::Types::String

Name of the sender of the message if the sender is hidden by their privacy settings.

Returns:

  • (TD::Types::String)

    the current value of sender_name



13
14
15
# File 'lib/tdlib/types/forward_source.rb', line 13

def sender_name
  @sender_name
end