Safe Haskell | None |
---|---|
Language | Haskell2010 |
User interactions: customized keyboards, clickable buttons, popups and inline displays
Synopsis
- data CallbackQuery = CBQuery {
- callbackId :: Text
- from :: User
- message :: Message
- inlineMessageId :: Maybe Text
- chatInstance :: Text
- callbackData :: Maybe Text
- gameShortName :: Maybe Text
- data ShippingQuery = SQuery {
- queryId :: Text
- from :: User
- invoicePayload :: Text
- shippingAddress :: ShippingAddress
- data PreCheckoutQuery = PCQuery {
- queryId :: Text
- from :: User
- currency :: Text
- totalAmount :: Integer
- invoicePayload :: Text
- shippingOptionId :: Maybe String
- orderInfo :: Maybe OrderInfo
- data ReplyKeyboardMarkup = ReplyKeyboardMarkup {
- keyboard :: [[KeyboardButton]]
- resizeKeyboard :: Maybe Bool
- oneTimeKeyboard :: Maybe Bool
- selective :: Maybe Bool
- data KeyboardButton = KeyboardButton {}
- newtype KeyboardButtonPollType = KeyboardButtonPollType {}
- data ReplyKeyboardRemove = ReplyKeyboardRemove {
- removeKeyboard :: Bool
- selective :: Maybe Bool
- newtype InlineKeyboardMarkup = InlineKeyboardMarkup {}
- data InlineKeyboardButton = InlineKeyboardButton {}
- data ForceReply = ForceReply {
- forceReply :: Bool
- selective :: Maybe Bool
- data LoginUrl = LoginUrl {
- url :: Text
- forwardText :: Maybe Text
- botUsername :: Maybe Text
- requestWriteAccess :: Maybe Bool
- type ReplyMarkup = Union '[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply]
- data Action
queries
data CallbackQuery Source #
CBQuery | |
|
Instances
data ShippingQuery Source #
SQuery | |
|
Instances
data PreCheckoutQuery Source #
PCQuery | |
|
Instances
replys
data ReplyKeyboardMarkup Source #
ReplyKeyboardMarkup | |
|
Instances
data KeyboardButton Source #
Instances
newtype KeyboardButtonPollType Source #
Instances
data ReplyKeyboardRemove Source #
Instances
newtype InlineKeyboardMarkup Source #
Instances
data InlineKeyboardButton Source #
Instances
data ForceReply Source #
ForceReply | |
|
Instances
LoginUrl | |
|
Instances
type ReplyMarkup = Union '[InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, ForceReply] Source #
Typing | |
UploadPhoto | |
RecordVideo | |
UploadVideo | |
RecordAudio | |
UploadAudio | |
UploadDocument | |
FindLocation | |
RecordVideoNote | |
UploadVideoNote |
Instances
Orphan instances
ToJSON ReplyMarkup Source # | |
toJSON :: ReplyMarkup -> Value # toEncoding :: ReplyMarkup -> Encoding # toJSONList :: [ReplyMarkup] -> Value # toEncodingList :: [ReplyMarkup] -> Encoding # | |
ToHttpApiData (Union (InlineKeyboardMarkup ': (ReplyKeyboardMarkup ': (ReplyKeyboardRemove ': (ForceReply ': ([] :: [Type])))))) Source # | |
toUrlPiece :: Union (InlineKeyboardMarkup ': (ReplyKeyboardMarkup ': (ReplyKeyboardRemove ': (ForceReply ': [])))) -> Text # toEncodedUrlPiece :: Union (InlineKeyboardMarkup ': (ReplyKeyboardMarkup ': (ReplyKeyboardRemove ': (ForceReply ': [])))) -> Builder # toHeader :: Union (InlineKeyboardMarkup ': (ReplyKeyboardMarkup ': (ReplyKeyboardRemove ': (ForceReply ': [])))) -> ByteString # toQueryParam :: Union (InlineKeyboardMarkup ': (ReplyKeyboardMarkup ': (ReplyKeyboardRemove ': (ForceReply ': [])))) -> Text # |