Class 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 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.