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 booleanequals(Object o)StringgetBotUsername()StringgetForwardText()BooleangetRequestWriteAccess()StringgetUrl()inthashCode()voidsetBotUsername(String botUsername)voidsetForwardText(String forwardText)voidsetRequestWriteAccess(Boolean requestWriteAccess)voidsetUrl(String url)StringtoString()
-
-
-
Constructor Detail
-
LoginUrl
public LoginUrl(String url, String forwardText, String botUsername, Boolean requestWriteAccess)
BuildsLoginUrlinstance.- 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)
-
-