telega-0.2.3: Telegram Bot API binding
Network.API.Telegram.Bot.Core
type Telegram e a = ReaderT (e, (Session, Token)) (ExceptT SomeException IO) a Source #
telegram :: Session -> Token -> e -> Telegram e a -> IO (Either SomeException a) Source #
ask' :: Telegram e e Source #
newtype Token Source #
Constructors
Defined in Network.API.Telegram.Bot.Core
Methods
(==) :: Token -> Token -> Bool #
(/=) :: Token -> Token -> Bool #
data Ok a Source #
showsPrec :: Int -> Ok a -> ShowS #
show :: Ok a -> String #
showList :: [Ok a] -> ShowS #
parseJSON :: Value -> Parser (Ok a)
parseJSONList :: Value -> Parser [Ok a]
result :: Ok a -> Maybe a Source #