Class LoginUrl

    • Constructor Detail

      • LoginUrl

        public LoginUrl​(String url,
                        String forwardText,
                        String botUsername,
                        Boolean requestWriteAccess)
        Builds LoginUrl instance.
        Parameters:
        url - An HTTP URL to be opened with user authorization data added to the query string when the button is pressed
        forwardText - Optional. New text of the button in forwarded messages.
        botUsername - Optional. Username of a bot, which will be used for user authorization.
        requestWriteAccess - Optional. Pass True to request the permission for your bot to send messages to the user.
      • LoginUrl

        public LoginUrl()
    • Method Detail

      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getForwardText

        public String getForwardText()
      • setForwardText

        public void setForwardText​(String forwardText)
      • getBotUsername

        public String getBotUsername()
      • setBotUsername

        public void setBotUsername​(String botUsername)
      • getRequestWriteAccess

        public Boolean getRequestWriteAccess()
      • setRequestWriteAccess

        public void setRequestWriteAccess​(Boolean requestWriteAccess)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object