public class FbBotMillThreadSettingsConfiguration extends Object
FbBotDefinition. The best way of handling the
configuration would be defining your own class with a main method and put the
call on it.| Constructor and Description |
|---|
FbBotMillThreadSettingsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addWhiteListDomain(String domain)
Add a single domain on the list of domains that needs to be "white listed".
|
static void |
deleteGetStartedButton()
Removes the current Get Started Button.
|
static void |
deletePersistentMenu()
Removes the current Persistent Menu.
|
static void |
deleteWhiteListDomains(List<String> whiteListDomains)
Removes a list of domains that are currently "white listed".
|
static void |
setGetStartedButton(String payload)
Sets the Get Started Button for the bot.
|
static void |
setGreetingMessage(String message)
Sets the greeting message for the bot.
|
static void |
setPersistentMenu(List<Button> buttons)
Sets a Persistent Menu of buttons which is always available to the user.
|
static void |
setWhiteListDomains(List<String> whiteListDomains)
Add a list of domains that needs to be "white listed".
|
public FbBotMillThreadSettingsConfiguration()
public static void setGreetingMessage(String message)
message - the greeting message to show.public static void setGetStartedButton(String payload)
payload - the payload to return when the button is tapped.public static void deleteGetStartedButton()
#setGetStartedButton(String)}public static void setPersistentMenu(List<Button> buttons)
buttons - a list of Button (max 5 elements) to use as menu. The
buttons can only be PostbackButton or
WebUrlButton. Phone buttons are not supported.public static void deletePersistentMenu()
#setPersistentMenu(List)}public static void setWhiteListDomains(List<String> whiteListDomains)
whiteListDomains - the list of domains in String.public static void addWhiteListDomain(String domain)
domain - the domain that needs to be "white listed"Copyright © 2016 BotMill. All rights reserved.