Class TdApi.GetInternalLink
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.HttpUrl>
dev.voroby.springframework.telegram.client.TdApi.GetInternalLink
- Enclosing class:
- TdApi
Returns an HTTPS or a tg: link with the given type. Can be called before authorization.
Returns HttpUrl
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link.Expected type of the link. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns an HTTPS or a tg: link with the given type.GetInternalLink
(TdApi.InternalLinkType type, boolean isHttp) Creates a function, which returns an HTTPS or a tg: link with the given type. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
type
Expected type of the link. -
isHttp
public boolean isHttpPass true to create an HTTPS link (only available for some link types); pass false to create a tg: link. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetInternalLink
public GetInternalLink()Default constructor for a function, which returns an HTTPS or a tg: link with the given type. Can be called before authorization.Returns
HttpUrl
-
GetInternalLink
Creates a function, which 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.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-