Class TdApi.InternalLinkTypePublicChat

Enclosing class:
TdApi

public static class TdApi.InternalLinkTypePublicChat extends TdApi.InternalLinkType
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.
  • Field Details

    • chatUsername

      public String chatUsername
      Username of the chat.
    • draftText

      public String draftText
      Draft text for message to send in the chat.
    • openProfile

      public boolean openProfile
      True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InternalLinkTypePublicChat

      public InternalLinkTypePublicChat()
      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.
    • InternalLinkTypePublicChat

      public InternalLinkTypePublicChat(String chatUsername, String draftText, boolean openProfile)
      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.
      Parameters:
      chatUsername - Username of the chat.
      draftText - Draft text for message to send in the chat.
      openProfile - True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR