Class: TD::Types::InternalLinkType::PublicChat

Inherits:
TD::Types::InternalLinkType show all
Defined in:
lib/tdlib/types/internal_link_type/public_chat.rb

Overview

The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link If the chat is found, open its profile

information screen or the chat itself.

If draft text isn’t empty and the chat is a private chat with a regular user, then put the draft text in the input

field.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_usernameTD::Types::String

Username of the chat.

Returns:

  • (TD::Types::String)

    the current value of chat_username



12
13
14
# File 'lib/tdlib/types/internal_link_type/public_chat.rb', line 12

def chat_username
  @chat_username
end

#draft_textTD::Types::String

Draft text for message to send in the chat.

Returns:

  • (TD::Types::String)

    the current value of draft_text



12
13
14
# File 'lib/tdlib/types/internal_link_type/public_chat.rb', line 12

def draft_text
  @draft_text
end

#open_profileBoolean

True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.

Returns:

  • (Boolean)

    the current value of open_profile



12
13
14
# File 'lib/tdlib/types/internal_link_type/public_chat.rb', line 12

def open_profile
  @open_profile
end