Class: TD::Types::MessageLinkInfo

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

Overview

Contains information about a link to a message in a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

If found, identifier of the chat to which the message belongs, 0 otherwise.

Returns:

  • (Integer)

    the current value of chat_id



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

def chat_id
  @chat_id
end

#for_albumBoolean

True, if the whole media album to which the message belongs is linked.

Returns:

  • (Boolean)

    the current value of for_album



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

def for_album
  @for_album
end

#is_publicBoolean

True, if the link is a public link for a message in a chat.

Returns:

  • (Boolean)

    the current value of is_public



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

def is_public
  @is_public
end

#messageTD::Types::Message?

If found, the linked message; may be null.

Returns:



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

def message
  @message
end