Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SendInvoiceRequest = SendInvoiceRequest {
- sendInvoiceChatId :: ChatId
- sendInvoiceMessageThreadId :: Maybe MessageThreadId
- sendInvoiceTitle :: Text
- sendInvoiceDescription :: Text
- sendInvoicePayload :: Text
- sendInvoiceProviderToken :: Text
- sendInvoiceCurrency :: Text
- sendInvoicePrices :: [LabeledPrice]
- sendInvoiceMaxTipAmount :: Maybe Integer
- sendInvoiceequestSuggestedTipAmounts :: Maybe [Integer]
- sendInvoiceStartParameter :: Maybe Text
- sendInvoiceProviderData :: Maybe Text
- sendInvoicePhotoUrl :: Maybe Text
- sendInvoicePhotoSize :: Maybe Int
- sendInvoicePhotoWidth :: Maybe Int
- sendInvoicePhotoHeight :: Maybe Int
- sendInvoiceNeedName :: Maybe Bool
- sendInvoiceNeedPhoneNumber :: Maybe Bool
- sendInvoiceNeedEmail :: Maybe Bool
- sendInvoiceNeedShippingAddress :: Maybe Bool
- sendInvoiceSendPhoneNumberToProvider :: Maybe Bool
- sendInvoiceSendEmailToProvider :: Maybe Bool
- sendInvoiceIsFlexible :: Maybe Bool
- sendInvoiceDisableNotification :: Maybe Bool
- sendInvoiceProtectContent :: Maybe Bool
- sendInvoiceReplyToMessageId :: Maybe MessageId
- sendInvoiceAllowSendingWithoutReply :: Maybe Bool
- sendInvoiceReplyMarkup :: Maybe InlineKeyboardMarkup
- type SendInvoice = "sendInvoice" :> (ReqBody '[JSON] SendInvoiceRequest :> Post '[JSON] (Response Message))
- sendInvoice :: SendInvoiceRequest -> ClientM (Response Message)
- data CreateInvoiceLinkRequest = CreateInvoiceLinkRequest {
- createInvoiceLinkTitle :: Text
- createInvoiceLinkDescription :: Text
- createInvoiceLinkPayload :: Text
- createInvoiceLinkProviderToken :: Text
- createInvoiceLinkCurrency :: Text
- createInvoiceLinkPrices :: [LabeledPrice]
- createInvoiceLinkMaxTipAmount :: Maybe Integer
- createInvoiceLinkSuggestedTipAmounts :: Maybe [Integer]
- createInvoiceLinkProviderData :: Maybe Text
- createInvoiceLinkPhotoUrl :: Maybe Text
- createInvoiceLinkPhotoSize :: Maybe Int
- createInvoiceLinkPhotoWidth :: Maybe Int
- createInvoiceLinkPhotoHeight :: Maybe Int
- createInvoiceLinkNeedName :: Maybe Bool
- createInvoiceLinkNeedPhoneNumber :: Maybe Bool
- createInvoiceLinkNeedEmail :: Maybe Bool
- createInvoiceLinkNeedShippingAddress :: Maybe Bool
- createInvoiceLinkSendPhoneNumberToProvider :: Maybe Bool
- createInvoiceLinkSendEmailToProvider :: Maybe Bool
- createInvoiceLinkIsFlexible :: Maybe Bool
- type CreateInvoiceLink = "createInvoiceLink" :> (ReqBody '[JSON] CreateInvoiceLinkRequest :> Post '[JSON] (Response Text))
- createInvoiceLink :: CreateInvoiceLinkRequest -> ClientM (Response Text)
- 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.
createInvoiceLink
data CreateInvoiceLinkRequest Source #
CreateInvoiceLinkRequest | |
|
Instances
type CreateInvoiceLink = "createInvoiceLink" :> (ReqBody '[JSON] CreateInvoiceLinkRequest :> Post '[JSON] (Response Text)) Source #
createInvoiceLink :: CreateInvoiceLinkRequest -> ClientM (Response Text) Source #
Use this method to create a link for an invoice. Returns the created invoice link as Text
on success.
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.