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



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

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



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

def for_album
  @for_album
end

#for_commentBoolean

True, if the message is linked as a channel post comment or from a message thread.

Returns:

  • (Boolean)

    the current value of for_comment



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

def for_comment
  @for_comment
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



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

def is_public
  @is_public
end

#messageTD::Types::Message?

If found, the linked message; may be null.

Returns:



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

def message
  @message
end