Package org.drinkless.tdlib
Class TdApi.OauthLinkInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.OauthLinkInfo
- Enclosing class:
TdApi
Information about the OAuth authorization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongUser identifier of a bot linked with the website.The version of a browser used for the authorization.static final intIdentifier uniquely determining type of the object.A domain of the URL.booleanTrue, if the authorization originates from an application.IP address from which the authorization is performed, in human-readable format.Human-readable description of a country and a region from which the authorization is performed, based on the IP address.booleanTrue, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest.String[]The list of codes to match; may be empty if irrelevant.Operating system the browser is running on.booleanTrue, if the user must be asked for the permission to share their phone number.booleanTrue, if the user must be asked for the permission to the bot to send them messages.An HTTP URL where the user authorizes.longIdentifier of the user for which the link was generated; may be 0 if unknown.Verified name of the application; if empty, then "Unverified App" must be shown instead. -
Constructor Summary
ConstructorsConstructorDescriptionInformation about the OAuth authorization.OauthLinkInfo(long userId, String url, String domain, boolean fromApp, String verifiedAppName, long botUserId, boolean requestWriteAccess, boolean requestPhoneNumberAccess, String browser, String platform, String ipAddress, String location, boolean matchCodeFirst, String[] matchCodes) Information about the OAuth authorization. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
userId
public long userIdIdentifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown. If the user is logged in the application, then they must be chosen for authorization by default. -
url
An HTTP URL where the user authorizes. -
domain
A domain of the URL. -
fromApp
public boolean fromAppTrue, if the authorization originates from an application. -
verifiedAppName
Verified name of the application; if empty, then "Unverified App" must be shown instead. -
botUserId
public long botUserIdUser identifier of a bot linked with the website. -
requestWriteAccess
public boolean requestWriteAccessTrue, if the user must be asked for the permission to the bot to send them messages. -
requestPhoneNumberAccess
public boolean requestPhoneNumberAccessTrue, if the user must be asked for the permission to share their phone number. -
browser
The version of a browser used for the authorization. -
platform
Operating system the browser is running on. -
ipAddress
IP address from which the authorization is performed, in human-readable format. -
location
Human-readable description of a country and a region from which the authorization is performed, based on the IP address. -
matchCodeFirst
public boolean matchCodeFirstTrue, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called. -
matchCodes
The list of codes to match; may be empty if irrelevant. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
OauthLinkInfo
public OauthLinkInfo()Information about the OAuth authorization. -
OauthLinkInfo
public OauthLinkInfo(long userId, String url, String domain, boolean fromApp, String verifiedAppName, long botUserId, boolean requestWriteAccess, boolean requestPhoneNumberAccess, String browser, String platform, String ipAddress, String location, boolean matchCodeFirst, String[] matchCodes) Information about the OAuth authorization.- Parameters:
userId- Identifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown. If the user is logged in the application, then they must be chosen for authorization by default.url- An HTTP URL where the user authorizes.domain- A domain of the URL.fromApp- True, if the authorization originates from an application.verifiedAppName- Verified name of the application; if empty, then "Unverified App" must be shown instead.botUserId- User identifier of a bot linked with the website.requestWriteAccess- True, if the user must be asked for the permission to the bot to send them messages.requestPhoneNumberAccess- True, if the user must be asked for the permission to share their phone number.browser- The version of a browser used for the authorization.platform- Operating system the browser is running on.ipAddress- IP address from which the authorization is performed, in human-readable format.location- Human-readable description of a country and a region from which the authorization is performed, based on the IP address.matchCodeFirst- True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called.matchCodes- The list of codes to match; may be empty if irrelevant.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-