Class: TD::Types::InternalLinkType::PublicChat
- Inherits:
-
TD::Types::InternalLinkType
- Object
- Dry::Struct
- Base
- TD::Types::InternalLinkType
- TD::Types::InternalLinkType::PublicChat
- 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
-
#chat_username ⇒ TD::Types::String
Username of the chat.
-
#draft_text ⇒ TD::Types::String
Draft text for message to send in the chat.
-
#open_profile ⇒ Boolean
True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.
Method Summary
Methods inherited from Base
Instance Attribute Details
#chat_username ⇒ TD::Types::String
Username of the chat.
12 13 14 |
# File 'lib/tdlib/types/internal_link_type/public_chat.rb', line 12 def chat_username @chat_username end |
#draft_text ⇒ TD::Types::String
Draft text for message to send in the chat.
12 13 14 |
# File 'lib/tdlib/types/internal_link_type/public_chat.rb', line 12 def draft_text @draft_text end |
#open_profile ⇒ Boolean
True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.
12 13 14 |
# File 'lib/tdlib/types/internal_link_type/public_chat.rb', line 12 def open_profile @open_profile end |