| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Line.Bot.Client
Documentation
data Id :: ChatType -> * where Source #
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.1.0.0-18xO8OfssWbAHwlPuRP9ku" 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.1.0.0-18xO8OfssWbAHwlPuRP9ku" 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.1.0.0-18xO8OfssWbAHwlPuRP9ku" 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
runLine :: ChannelToken -> Line a -> IO (Either ServantError a) Source #
newtype ChannelToken Source #
Constructors
| ChannelToken Text |
Instances
| Eq ChannelToken Source # | |
Defined in Line.Bot.Client | |
| IsString ChannelToken Source # | |
Defined in Line.Bot.Client Methods fromString :: String -> ChannelToken # | |
| ToHttpApiData ChannelToken Source # | |
Defined in Line.Bot.Client Methods toUrlPiece :: ChannelToken -> Text # toEncodedUrlPiece :: ChannelToken -> Builder # toHeader :: ChannelToken -> ByteString # toQueryParam :: ChannelToken -> Text # | |
replyMessage :: ReplyToken -> [Message] -> Line NoContent Source #