Package org.drinkless.tdlib
Class TdApi.AcceptOauthRequest
- Enclosing class:
TdApi
Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown.
Returns HttpUrl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number.booleanPass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages.static final intIdentifier uniquely determining type of the object.The matching code chosen by the user.URL of the OAuth deep link. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which accepts an OAuth authorization request.AcceptOauthRequest(String url, String matchCode, boolean allowWriteAccess, boolean allowPhoneNumberAccess) Creates a function, which accepts an OAuth authorization request. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
url
URL of the OAuth deep link. -
matchCode
The matching code chosen by the user. -
allowWriteAccess
public boolean allowWriteAccessPass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages. -
allowPhoneNumberAccess
public boolean allowPhoneNumberAccessPass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AcceptOauthRequest
public AcceptOauthRequest()Default constructor for a function, which accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown.Returns
HttpUrl -
AcceptOauthRequest
public AcceptOauthRequest(String url, String matchCode, boolean allowWriteAccess, boolean allowPhoneNumberAccess) Creates a function, which accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown.Returns
HttpUrl- Parameters:
url- URL of the OAuth deep link.matchCode- The matching code chosen by the user.allowWriteAccess- Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages.allowPhoneNumberAccess- Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.HttpUrl>- Returns:
- this.CONSTRUCTOR
-