| Copyright | (c) Alexandre Moreno 2019 |
|---|---|
| License | BSD3 |
| Maintainer | alexmorenocano@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Line.Bot.Types
Description
Synopsis
- newtype ChannelToken = ChannelToken Text
- newtype ChannelSecret = ChannelSecret {}
- data ChatType
- data Id :: ChatType -> * where
- type MessageId = Text
- newtype URL = URL Text
- data Message
- = Text {
- text :: Text
- quickReply :: Maybe QuickReply
- | Sticker {
- packageId :: Text
- stickerId :: Text
- quickReply :: Maybe QuickReply
- | Image { }
- | Video { }
- | Audio { }
- | Location { }
- = Text {
- newtype ReplyToken = ReplyToken Text
- data LinkToken = LinkToken {}
- data ReplyMessageBody = ReplyMessageBody ReplyToken [Message]
- data PushMessageBody = PushMessageBody (Id a) [Message]
- data MulticastMessageBody = MulticastMessageBody [Id User] [Message]
- data Profile = Profile {
- displayName :: Text
- userId :: Id User
- pictureUrl :: URL
- statusMessage :: Maybe Text
- data QuickReply = QuickReply {
- items :: [QuickReplyButton]
- data QuickReplyButton = Action {}
- data Action
- = ActionPostback {
- label :: Text
- postbackData :: Text
- displayText :: Text
- | ActionMessage { }
- | ActionURI { }
- | ActionCamera { }
- | ActionCameraRoll { }
- | ActionLocation { }
- = ActionPostback {
- data ClientCredentials = ClientCredentials {
- clientId :: ChannelId
- clientSecret :: ChannelSecret
- data ShortLivedChannelToken = ShortLivedChannelToken {}
Documentation
newtype ChannelToken Source #
Constructors
| ChannelToken Text |
Instances
newtype ChannelSecret Source #
Constructors
| ChannelSecret | |
Fields | |
Instances
| IsString ChannelSecret Source # | |
Defined in Line.Bot.Types Methods fromString :: String -> ChannelSecret # | |
| ToHttpApiData ChannelSecret Source # | |
Defined in Line.Bot.Types Methods toUrlPiece :: ChannelSecret -> Text # toEncodedUrlPiece :: ChannelSecret -> Builder # toHeader :: ChannelSecret -> ByteString # toQueryParam :: ChannelSecret -> Text # | |
data Id :: ChatType -> * where Source #
ID of a chat user, group or room
Instances
| Eq (Id a) Source # | |
| Show (Id a) Source # | |
| ToJSON (Id a) Source # | |
Defined in Line.Bot.Types | |
| FromJSON (Id User) Source # | |
| FromJSON (Id Group) Source # | |
| FromJSON (Id Room) Source # | |
| ToHttpApiData (Id a) Source # | |
Defined in Line.Bot.Types Methods toUrlPiece :: Id a -> Text # toEncodedUrlPiece :: Id a -> Builder # toHeader :: Id a -> ByteString # toQueryParam :: Id a -> Text # | |
Constructors
| Text | |
Fields
| |
| Sticker | |
Fields
| |
| Image | |
Fields | |
| Video | |
Fields | |
| Audio | |
Fields
| |
| Location | |
Instances
newtype ReplyToken Source #
Constructors
| ReplyToken Text |
Instances
| Eq ReplyToken Source # | |
Defined in Line.Bot.Types | |
| Show ReplyToken Source # | |
Defined in Line.Bot.Types Methods showsPrec :: Int -> ReplyToken -> ShowS # show :: ReplyToken -> String # showList :: [ReplyToken] -> ShowS # | |
| Generic ReplyToken Source # | |
Defined in Line.Bot.Types Associated Types type Rep ReplyToken :: Type -> Type # | |
| ToJSON ReplyToken Source # | |
Defined in Line.Bot.Types Methods toJSON :: ReplyToken -> Value # toEncoding :: ReplyToken -> Encoding # toJSONList :: [ReplyToken] -> Value # toEncodingList :: [ReplyToken] -> Encoding # | |
| FromJSON ReplyToken Source # | |
Defined in Line.Bot.Types | |
| type Rep ReplyToken Source # | |
Defined in Line.Bot.Types type Rep ReplyToken = D1 (MetaData "ReplyToken" "Line.Bot.Types" "line-bot-sdk-0.3.0.0-9O57BGTvzGGIPepbqe52qA" True) (C1 (MetaCons "ReplyToken" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) | |
data ReplyMessageBody Source #
Constructors
| ReplyMessageBody ReplyToken [Message] |
Instances
data PushMessageBody Source #
Constructors
| PushMessageBody (Id a) [Message] |
Instances
| Show PushMessageBody Source # | |
Defined in Line.Bot.Types Methods showsPrec :: Int -> PushMessageBody -> ShowS # show :: PushMessageBody -> String # showList :: [PushMessageBody] -> ShowS # | |
| ToJSON PushMessageBody Source # | |
Defined in Line.Bot.Types Methods toJSON :: PushMessageBody -> Value # toEncoding :: PushMessageBody -> Encoding # toJSONList :: [PushMessageBody] -> Value # toEncodingList :: [PushMessageBody] -> Encoding # | |
data MulticastMessageBody Source #
Constructors
| MulticastMessageBody [Id User] [Message] |
Instances
Constructors
| Profile | |
Fields
| |
Instances
| Show Profile Source # | |
| Generic Profile Source # | |
| FromJSON Profile Source # | |
| type Rep Profile Source # | |
Defined in Line.Bot.Types type Rep Profile = D1 (MetaData "Profile" "Line.Bot.Types" "line-bot-sdk-0.3.0.0-9O57BGTvzGGIPepbqe52qA" False) (C1 (MetaCons "Profile" PrefixI True) ((S1 (MetaSel (Just "displayName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "userId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Id User))) :*: (S1 (MetaSel (Just "pictureUrl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 URL) :*: S1 (MetaSel (Just "statusMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) | |
data QuickReply Source #
Constructors
| QuickReply | |
Fields
| |
Instances
| Eq QuickReply Source # | |
Defined in Line.Bot.Types | |
| Show QuickReply Source # | |
Defined in Line.Bot.Types Methods showsPrec :: Int -> QuickReply -> ShowS # show :: QuickReply -> String # showList :: [QuickReply] -> ShowS # | |
| Generic QuickReply Source # | |
Defined in Line.Bot.Types Associated Types type Rep QuickReply :: Type -> Type # | |
| ToJSON QuickReply Source # | |
Defined in Line.Bot.Types Methods toJSON :: QuickReply -> Value # toEncoding :: QuickReply -> Encoding # toJSONList :: [QuickReply] -> Value # toEncodingList :: [QuickReply] -> Encoding # | |
| type Rep QuickReply Source # | |
Defined in Line.Bot.Types type Rep QuickReply = D1 (MetaData "QuickReply" "Line.Bot.Types" "line-bot-sdk-0.3.0.0-9O57BGTvzGGIPepbqe52qA" False) (C1 (MetaCons "QuickReply" PrefixI True) (S1 (MetaSel (Just "items") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [QuickReplyButton]))) | |
data QuickReplyButton Source #
Instances
Constructors
| ActionPostback | |
Fields
| |
| ActionMessage | |
| ActionURI | |
| ActionCamera | |
| ActionCameraRoll | |
| ActionLocation | |
Instances
data ClientCredentials Source #
Constructors
| ClientCredentials | |
Fields
| |
Instances
| ToForm ClientCredentials Source # | |
Defined in Line.Bot.Types Methods toForm :: ClientCredentials -> Form # | |
data ShortLivedChannelToken Source #
Constructors
| ShortLivedChannelToken | |
Fields
| |