Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
MSAzureAPI.BotService
Description
Synopsis
- sendMessage :: FromJSON b => Text -> Text -> Activity -> AccessToken -> Req b
- sendReply :: Activity -> Text -> [Attachment] -> AccessToken -> Req ()
- data Activity = Activity {
- aType :: ActivityType
- aId :: Maybe Text
- aChannelId :: Maybe Text
- aConversation :: ConversationAccount
- aFrom :: ChannelAccount
- aRecipient :: ChannelAccount
- aServiceUrl :: Text
- aReplyToId :: Maybe Text
- aText :: Text
- aAttachments :: [Attachment]
- data Attachment = Attachment {}
- data AdaptiveCard = AdaptiveCard {}
- data ACElement
- data Image = Image {}
- newtype TextBlock = TextBlock {}
- data ColumnSet = ColumnSet {
- colsColumns :: [Column]
- data Column = Column {}
Documentation
Arguments
:: Activity | data from the user |
-> Text | reply text |
-> [Attachment] | reply attachments |
-> AccessToken | |
-> Req () |
Types
Activity object. Defines a message that is exchanged between bot and user.
Constructors
Activity | |
Fields
|
data Attachment Source #
Message attachments
Attachments can be of many types but we currently only support adaptive cards
Constructors
Attachment | |
Fields |
Instances
FromJSON Attachment Source # | |
Defined in MSAzureAPI.BotService | |
ToJSON Attachment Source # | |
Defined in MSAzureAPI.BotService Methods toJSON :: Attachment -> Value # toEncoding :: Attachment -> Encoding # toJSONList :: [Attachment] -> Value # toEncodingList :: [Attachment] -> Encoding # | |
Generic Attachment Source # | |
Defined in MSAzureAPI.BotService Associated Types type Rep Attachment :: Type -> Type # | |
Show Attachment Source # | |
Defined in MSAzureAPI.BotService Methods showsPrec :: Int -> Attachment -> ShowS # show :: Attachment -> String # showList :: [Attachment] -> ShowS # | |
type Rep Attachment Source # | |
Defined in MSAzureAPI.BotService type Rep Attachment = D1 ('MetaData "Attachment" "MSAzureAPI.BotService" "ms-azure-api-0.6.0.1-9AqtB8TNiqqGzZl2uZcaR4" 'False) (C1 ('MetaCons "Attachment" 'PrefixI 'True) (S1 ('MetaSel ('Just "attContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AdaptiveCard))) |
Adaptive Card
data AdaptiveCard Source #
Adaptive Card API
Constructors
AdaptiveCard | |
Instances
FromJSON AdaptiveCard Source # | |
Defined in MSAzureAPI.BotService | |
ToJSON AdaptiveCard Source # | |
Defined in MSAzureAPI.BotService Methods toJSON :: AdaptiveCard -> Value # toEncoding :: AdaptiveCard -> Encoding # toJSONList :: [AdaptiveCard] -> Value # toEncodingList :: [AdaptiveCard] -> Encoding # | |
Generic AdaptiveCard Source # | |
Defined in MSAzureAPI.BotService Associated Types type Rep AdaptiveCard :: Type -> Type # | |
Show AdaptiveCard Source # | |
Defined in MSAzureAPI.BotService Methods showsPrec :: Int -> AdaptiveCard -> ShowS # show :: AdaptiveCard -> String # showList :: [AdaptiveCard] -> ShowS # | |
type Rep AdaptiveCard Source # | |
Defined in MSAzureAPI.BotService type Rep AdaptiveCard = D1 ('MetaData "AdaptiveCard" "MSAzureAPI.BotService" "ms-azure-api-0.6.0.1-9AqtB8TNiqqGzZl2uZcaR4" 'False) (C1 ('MetaCons "AdaptiveCard" 'PrefixI 'True) (S1 ('MetaSel ('Just "acBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ACElement]))) |
Constructors
ACEColumnSet ColumnSet | |
ACEColumn Column | |
ACETextBlock TextBlock | |
ACEImage Image |
adaptive card elements
Constructors
ColumnSet | |
Fields
|