Module tdlight.api

Class TdApi.GetInternalLink

Enclosing class:
TdApi

public static final class TdApi.GetInternalLink extends TdApi.Function<TdApi.HttpUrl>
Returns an HTTPS or a tg: link with the given type. Can be called before authorization.

Returns HttpUrl

  • Field Details

    • type

      Expected type of the link.
    • isHttp

      public boolean isHttp
      Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link.
    • CONSTRUCTOR

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

    • GetInternalLink

      public GetInternalLink()
      Returns an HTTPS or a tg: link with the given type. Can be called before authorization.

      Returns HttpUrl

    • GetInternalLink

      public GetInternalLink(TdApi.InternalLinkType type, boolean isHttp)
      Returns an HTTPS or a tg: link with the given type. Can be called before authorization.

      Returns HttpUrl

      Parameters:
      type - Expected type of the link.
      isHttp - Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link.

      Returns HttpUrl

    • GetInternalLink

      public GetInternalLink(DataInput input) throws IOException
      Returns an HTTPS or a tg: link with the given type. Can be called before authorization.

      Returns HttpUrl

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object