Class TdApi.GetOauthLinkInfo

Enclosing class:
TdApi

public static class TdApi.GetOauthLinkInfo extends TdApi.Function<TdApi.OauthLinkInfo>
Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link.

Returns OauthLinkInfo

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise.
    URL of the link.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns information about an OAuth deep link.
    GetOauthLinkInfo(String url, String inAppOrigin)
    Creates a function, which returns information about an OAuth deep link.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • url

      public String url
      URL of the link.
    • inAppOrigin

      public String inAppOrigin
      Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise.
    • CONSTRUCTOR

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

    • GetOauthLinkInfo

      public GetOauthLinkInfo()
      Default constructor for a function, which returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link.

      Returns OauthLinkInfo

    • GetOauthLinkInfo

      public GetOauthLinkInfo(String url, String inAppOrigin)
      Creates a function, which returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link.

      Returns OauthLinkInfo

      Parameters:
      url - URL of the link.
      inAppOrigin - Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise.
  • 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