public class SetWebhook extends java.lang.Object implements TelegramMethod<java.lang.Boolean>
If you'd like to make sure that the Webhook request comes from Telegram,
we recommend using a secret path in the URL,
e.g. https://www.example.com/<token>.
Since nobody else knows your bot‘s token, you can be pretty sure it’s us.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
SetWebhook() |
| Modifier and Type | Method and Description |
|---|---|
SetWebhook |
certificate(UploadFile certificate) |
java.util.Map<java.lang.String,UploadFile> |
getFiles()
Return the file parameters of the method.
|
java.lang.String |
getName()
Returns the name of the method.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Return the parameters of the method.
|
java.lang.Class<java.lang.Boolean> |
getReturnType()
Returns the return type of the method.
|
SetWebhook |
maxConnections(java.lang.Integer maxConnections) |
SetWebhook |
setAllowedUpdates(java.lang.String... allowedUpdates) |
SetWebhook |
url(java.lang.String url) |
public static final java.lang.String NAME
public SetWebhook url(java.lang.String url)
public SetWebhook certificate(UploadFile certificate)
public SetWebhook maxConnections(java.lang.Integer maxConnections)
public SetWebhook setAllowedUpdates(java.lang.String... allowedUpdates)
public java.lang.String getName()
TelegramMethodgetName in interface TelegramMethod<java.lang.Boolean>public java.util.Map<java.lang.String,java.lang.Object> getParameters()
TelegramMethodgetParameters in interface TelegramMethod<java.lang.Boolean>public java.util.Map<java.lang.String,UploadFile> getFiles()
TelegramMethodgetFiles in interface TelegramMethod<java.lang.Boolean>public java.lang.Class<java.lang.Boolean> getReturnType()
TelegramMethodgetReturnType in interface TelegramMethod<java.lang.Boolean>