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 or a forum topic 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 link points, 0 otherwise.

Returns:

  • (Integer)

    the current value of chat_id



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

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



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

def for_album
  @for_album
end

#is_publicBoolean

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

Returns:

  • (Boolean)

    the current value of is_public



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

def is_public
  @is_public
end

#media_timestampInteger

Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its link preview.

Returns:

  • (Integer)

    the current value of media_timestamp



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

def media_timestamp
  @media_timestamp
end

#messageTD::Types::Message?

If found, the linked message; may be null.

Returns:



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

def message
  @message
end

#message_thread_idInteger

If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.

Returns:

  • (Integer)

    the current value of message_thread_id



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

def message_thread_id
  @message_thread_id
end