Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SendInvoiceRequest = SendInvoiceRequest {
- sendInvoiceRequestChatId :: ChatId
- sendInvoiceRequestTitle :: Text
- sendInvoiceRequestDescription :: Text
- sendInvoiceRequestPayload :: Text
- sendInvoiceRequestProviderToken :: Text
- sendInvoiceRequestCurrency :: Text
- sendInvoiceRequestPrices :: [LabeledPrice]
- sendInvoiceRequestMaxTipAmount :: Maybe Integer
- sendInvoiceRequestSuggestedTipAmounts :: Maybe [Integer]
- sendInvoiceRequestStartParameter :: Maybe Text
- sendInvoiceRequestProviderData :: Maybe Text
- sendInvoiceRequestPhotoUrl :: Maybe Text
- sendInvoiceRequestPhotoSize :: Maybe Int
- sendInvoiceRequestPhotoWidth :: Maybe Int
- sendInvoiceRequestPhotoHeight :: Maybe Int
- sendInvoiceRequestNeedName :: Maybe Bool
- sendInvoiceRequestNeedPhoneNumber :: Maybe Bool
- sendInvoiceRequestNeedEmail :: Maybe Bool
- sendInvoiceRequestNeedShippingAddress :: Maybe Bool
- sendInvoiceRequestSendPhoneNumberToProvider :: Maybe Bool
- sendInvoiceRequestSendEmailToProvider :: Maybe Bool
- sendInvoiceRequestIsFlexible :: Maybe Bool
- sendInvoiceRequestDisableNotification :: Maybe Bool
- sendInvoiceRequestProtectContent :: Maybe Bool
- sendInvoiceRequestReplyToMessageId :: Maybe MessageId
- sendInvoiceRequestAllowSendingWithoutReply :: Maybe Bool
- sendInvoiceRequestReplyMarkup :: Maybe InlineKeyboardMarkup
- type SendInvoice = "sendInvoice" :> (ReqBody '[JSON] SendInvoiceRequest :> Post '[JSON] (Response Message))
- sendInvoice :: SendInvoiceRequest -> ClientM (Response Message)
- data AnswerShippingQueryRequest = AnswerShippingQueryRequest {}
- type AnswerShippingQuery = "answerShippingQuery" :> (ReqBody '[JSON] AnswerShippingQueryRequest :> Post '[JSON] (Response Bool))
- answerShippingQuery :: AnswerShippingQueryRequest -> ClientM (Response Bool)
- data AnswerPreCheckoutQueryRequest = AnswerPreCheckoutQueryRequest {}
- type AnswerPreCheckoutQuery = "answerPreCheckoutQuery" :> (ReqBody '[JSON] AnswerPreCheckoutQueryRequest :> Post '[JSON] (Response Bool))
- answerPreCheckoutQuery :: AnswerPreCheckoutQueryRequest -> ClientM (Response Bool)
Methods
sendInvoice
data SendInvoiceRequest Source #
SendInvoiceRequest | |
|
Instances
type SendInvoice = "sendInvoice" :> (ReqBody '[JSON] SendInvoiceRequest :> Post '[JSON] (Response Message)) Source #
sendInvoice :: SendInvoiceRequest -> ClientM (Response Message) Source #
Use this method to send invoices. On success, the sent Message
is returned.
answerShippingQuery
data AnswerShippingQueryRequest Source #
AnswerShippingQueryRequest | |
|
Instances
type AnswerShippingQuery = "answerShippingQuery" :> (ReqBody '[JSON] AnswerShippingQueryRequest :> Post '[JSON] (Response Bool)) Source #
answerShippingQuery :: AnswerShippingQueryRequest -> ClientM (Response Bool) Source #
If you sent an invoice requesting a shipping address and the parameter is_flexible
was specified, the Bot API will send an Update
with a shipping_query
field to the bot. Use this method to reply to shipping queries. On success, True is returned.
answerPreCheckoutQuery
data AnswerPreCheckoutQueryRequest Source #
AnswerPreCheckoutQueryRequest | |
|
Instances
type AnswerPreCheckoutQuery = "answerPreCheckoutQuery" :> (ReqBody '[JSON] AnswerPreCheckoutQueryRequest :> Post '[JSON] (Response Bool)) Source #
answerPreCheckoutQuery :: AnswerPreCheckoutQueryRequest -> ClientM (Response Bool) Source #
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True
is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.