MessengerProfileApi instead.@Deprecated public class ThreadSettingsApi 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 |
addPaymentSettings(PaymentSettings paymentSettings)
Deprecated.
This method is used to add any payment settings needed.
|
static void |
addPaymentsTester(String paymentTesterId)
Deprecated.
Adds a single tester for payments.
|
static void |
addPaymentsTesters(List<String> paymentTestersIds)
Deprecated.
Adds a list of testers for payments.
|
static void |
addWhiteListDomain(String domain)
Deprecated.
Adds a single domain on the list of domains that needs to be
"white listed".
|
static void |
deleteGetStartedButton()
Deprecated.
Removes the current Get Started Button.
|
static void |
deletePersistentMenu()
Deprecated.
Removes the current Persistent Menu.
|
static void |
deleteWhiteListDomain(String domain)
Deprecated.
Removes a single domain on the list of domains that needs to be
"white listed".
|
static void |
deleteWhiteListDomains(List<String> whiteListDomains)
Deprecated.
Removes a list of domains that are currently "white listed".
|
static void |
removePaymentsTester(String paymentTesterId)
Deprecated.
Removes a single tester for payments.
|
static void |
removePaymentsTesters(List<String> paymentTestersIds)
Deprecated.
Removes a list of testers for payments.
|
static void |
setGetStartedButton(String payload)
Deprecated.
Sets the Get Started Button for the bot.
|
static void |
setGreetingMessage(String message)
Deprecated.
Sets the greeting message for the bot.
|
static void |
setPaymentsPrivacyUrl(String privacyUrl)
Deprecated.
Sets the payment privacy Url.
|
static void |
setPaymentsPublicKey(String publicKey)
Deprecated.
Sets the payment public key.
|
static void |
setPersistentMenu(List<Button> buttons)
Deprecated.
Sets a Persistent Menu of buttons which is always available to the user.
|
static void |
setWhiteListDomains(List<String> whiteListDomains)
Deprecated.
Adds a list of domains that needs to be "white listed".
|
String |
toString()
Deprecated.
|
public static void addPaymentSettings(PaymentSettings paymentSettings)
paymentSettings - the payment settings object.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".public static void deleteWhiteListDomain(String domain)
domain - the domain that needs to be removed.public static void deleteWhiteListDomains(List<String> whiteListDomains)
whiteListDomains - the list of domains that needs to be removed.public static void addPaymentsTesters(List<String> paymentTestersIds)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTestersIds - the testers app-scoped IDs to add to the testers list.public static void addPaymentsTester(String paymentTesterId)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTesterId - the tester app-scoped ID to add to the testers list.public static void removePaymentsTester(String paymentTesterId)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTesterId - the tester app-scoped ID to remove from the testers list.public static void removePaymentsTesters(List<String> paymentTestersIds)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTestersIds - the testers app-scoped IDs to remove from the testers list.public static void setPaymentsPublicKey(String publicKey)
publicKey - the public key to set.public static void setPaymentsPrivacyUrl(String privacyUrl)
privacyUrl - the privacy Url to set.Copyright © 2017 BotMill. All rights reserved.