public class SendPoll extends AbstractSendRequest<SendPoll>
thisAsT| Constructor and Description |
|---|
SendPoll(java.lang.Object chatId,
java.lang.String question,
java.lang.String... options) |
| Modifier and Type | Method and Description |
|---|---|
SendPoll |
allowsMultipleAnswers(boolean allowsMultipleAnswers) |
SendPoll |
correctOptionId(int correctOptionId) |
SendPoll |
isAnonymous(boolean isAnonymous) |
SendPoll |
isClosed(boolean isClosed) |
SendPoll |
type(Poll.Type type) |
SendPoll |
type(java.lang.String type) |
disableNotification, replyMarkup, replyToMessageIdadd, addAll, getContentType, getFileName, getMethod, getParameters, getResponseType, getTimeoutSeconds, isMultipart, serialize, toWebhookResponsepublic SendPoll(java.lang.Object chatId,
java.lang.String question,
java.lang.String... options)
public SendPoll isAnonymous(boolean isAnonymous)
public SendPoll type(java.lang.String type)
public SendPoll correctOptionId(int correctOptionId)
public SendPoll allowsMultipleAnswers(boolean allowsMultipleAnswers)
public SendPoll isClosed(boolean isClosed)