public class MessengerProfileApi extends Object
BotDefinition. The best way of handling the
configuration would be defining your own class with a main method and put the
call on it.| Modifier and Type | Method and Description |
|---|---|
static void |
deleteAccountLinkingUrl()
Removes the URL used for account linking.
|
static void |
deleteGetStartedButton()
Removes the current Get Started Button.
|
static void |
deleteGreetingMessage()
Removes the current Greeting Message.
|
static void |
deleteHomeUrl()
Removes the home url.
|
static void |
deletePersistentMenus()
Removes the Persistent Menus.
|
static void |
deleteWhitelistedDomains()
Removes the list of domains that are currently whitelisted.
|
static void |
setAccountLinkingUrl(String accountLinkingUrl)
Adds an URL used for account linking.
|
static void |
setGetStartedButton(String payload)
Sets the Get Started Button for the bot.
|
static void |
setGreetingMessage(List<Greeting> message)
Sets the greeting message for the bot.
|
static void |
setGreetingMessage(String message)
Sets the greeting message for the bot.
|
static void |
setHomeUrl(HomeUrl homeUrl)
This sets the home url of the Bot
|
static void |
setPersistentMenus(List<PersistentMenu> persistentMenu)
Sets the persistent menus.
|
static void |
setWhitelistedDomains(List<String> whitelistedDomains)
Adds a list of domains that needs to be whitelisted.
|
String |
toString() |
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 setGreetingMessage(String message)
message - the greeting message to show.public static void setGreetingMessage(List<Greeting> message)
message - the greeting messages to show.public static void deleteGreetingMessage()
setGreetingMessage(String)public static void setWhitelistedDomains(List<String> whitelistedDomains)
whitelistedDomains - the list of domains to whitelist.public static void deleteWhitelistedDomains()
public static void setAccountLinkingUrl(String accountLinkingUrl)
accountLinkingUrl - the URL for the account linking.public static void deleteAccountLinkingUrl()
public static void setPersistentMenus(List<PersistentMenu> persistentMenu)
persistentMenu - the new persistent menuspublic static void deletePersistentMenus()
public static void setHomeUrl(HomeUrl homeUrl)
homeUrl - public static void deleteHomeUrl()
Copyright © 2017 BotMill. All rights reserved.