Package org.drinkless.tdlib
Class TdApi.GetExternalLink
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetExternalLink
-
- Enclosing class:
- TdApi
public static class TdApi.GetExternalLink extends TdApi.Function
Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed.Returns
HttpUrl
-
-
Field Summary
Fields Modifier and Type Field Description booleanallowWriteAccessTrue, if the current user allowed the bot, returned in getExternalLinkInfo, to send them messages.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringlinkThe HTTP link.
-
Constructor Summary
Constructors Constructor Description GetExternalLink()Default constructor for a function, which returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link.GetExternalLink(String link, boolean allowWriteAccess)Creates a function, which returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
link
public String link
The HTTP link.
-
allowWriteAccess
public boolean allowWriteAccess
True, if the current user allowed the bot, returned in getExternalLinkInfo, to send them messages.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetExternalLink
public GetExternalLink()
Default constructor for a function, which returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed.Returns
HttpUrl
-
GetExternalLink
public GetExternalLink(String link, boolean allowWriteAccess)
Creates a function, which returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed.Returns
HttpUrl- Parameters:
link- The HTTP link.allowWriteAccess- True, if the current user allowed the bot, returned in getExternalLinkInfo, to send them messages.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-