Class LoginUrl
- java.lang.Object
-
- org.apache.camel.component.telegram.model.LoginUrl
-
- All Implemented Interfaces:
Serializable
public class LoginUrl extends Object implements Serializable
Represents a parameter of the inline keyboard button used to automatically authorize a user.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBotUsername()
String
getForwardText()
Boolean
getRequestWriteAccess()
String
getUrl()
int
hashCode()
void
setBotUsername(String botUsername)
void
setForwardText(String forwardText)
void
setRequestWriteAccess(Boolean requestWriteAccess)
void
setUrl(String url)
String
toString()
-
-
-
Constructor Detail
-
LoginUrl
public LoginUrl(String url, String forwardText, String botUsername, Boolean requestWriteAccess)
BuildsLoginUrl
instance.- Parameters:
url
- An HTTP URL to be opened with user authorization data added to the query string when the button is pressedforwardText
- 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)
-
-