Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
:: 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.
Activity | |
|
data Attachment Source #
Message attachments
Attachments can be of many types but we currently only support adaptive cards
Instances
Adaptive Card
data AdaptiveCard Source #
Adaptive Card API
Instances
adaptive card elements
ColumnSet | |
|