Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Msg = Msg {}
- data TelegramState = TelegramState {}
- type Telegram = ModuleT TelegramState LB
- readInput :: TelegramState -> IO Msg
- readOutput :: TelegramState -> IO Msg
- writeInput :: Msg -> TelegramState -> IO ()
- writeOutput :: Msg -> TelegramState -> IO ()
Documentation
Transport type used to communicate between Telegram and Lambdabot.
data TelegramState Source #
Shared state between Lambdabot and Telegram.
readInput :: TelegramState -> IO Msg Source #
Read input message from Telegram bot on Lambdabot side.
readOutput :: TelegramState -> IO Msg Source #
Read output message from Lambdabot on Telegram bot side.
writeInput :: Msg -> TelegramState -> IO () Source #
Send input message to Lambdabot from Telegram bot side.
writeOutput :: Msg -> TelegramState -> IO () Source #
Send output message to Telegram bot from Lambdabot side.