Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SendPollRequest = SendPollRequest {
- sendPollBusinessConnectionId :: Maybe BusinessConnectionId
- sendPollChatId :: SomeChatId
- sendPollMessageThreadId :: Maybe MessageThreadId
- sendPollQuestion :: Text
- sendPollQuestionParseMode :: Maybe ParseMode
- sendPollQuestionEntities :: Maybe [MessageEntity]
- sendPollOptions :: [InputPollOption]
- sendPollIsAnonymous :: Maybe Bool
- sendPollType :: Maybe Text
- sendPollAllowsMultipleAnswers :: Maybe Bool
- sendPollCorrectOptionId :: Maybe Int
- sendPollExplanation :: Maybe Text
- sendPollExplanationParseMode :: Maybe ParseMode
- sendPollExplanationEntities :: Maybe [MessageEntity]
- sendPollOpenPeriod :: Maybe Int
- sendPollCloseDate :: Maybe Int
- sendPollIsClosed :: Maybe Bool
- sendPollDisableNotification :: Maybe Bool
- sendPollProtectContent :: Maybe Bool
- sendPollMessageEffectId :: Maybe Text
- sendPollReplyToMessageId :: Maybe MessageId
- sendPollReplyParameters :: Maybe ReplyParameters
- sendPollReplyMarkup :: Maybe InlineKeyboardMarkup
- type SendPoll = "sendPoll" :> (ReqBody '[JSON] SendPollRequest :> Post '[JSON] (Response Message))
- sendPoll :: SendPollRequest -> ClientM (Response Message)
- defSendPoll :: SomeChatId -> Text -> [InputPollOption] -> SendPollRequest
sendPoll
data SendPollRequest Source #
Request parameters for sendPoll
.
SendPollRequest | |
|
Instances
type SendPoll = "sendPoll" :> (ReqBody '[JSON] SendPollRequest :> Post '[JSON] (Response Message)) Source #
sendPoll :: SendPollRequest -> ClientM (Response Message) Source #
Use this method to send a native poll. On success, the sent Message is returned.
defSendPoll :: SomeChatId -> Text -> [InputPollOption] -> SendPollRequest Source #