Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runClient :: TelegramClient a -> Token -> Manager -> IO (Either ServantError a)
- runClient' :: TelegramClient a -> Token -> ClientEnv -> IO (Either ServantError a)
- runTelegramClient :: Token -> Manager -> TelegramClient a -> IO (Either ServantError a)
- type TelegramBotAPI = TelegramBotMessagesAPI :<|> (TelegramBotUpdatesAPI :<|> (TelegramBotChatsAPI :<|> (TelegramBotEditAPI :<|> (TelegramBotQueriesAPI :<|> (TelegramBotGetAPI :<|> (TelegramBotPaymentsAPI :<|> TelegramBotStickersAPI))))))
- api :: Proxy TelegramBotAPI
- newtype Token = Token Text
- type TelegramClient a = ReaderT Token ClientM a
Functions
runClient :: TelegramClient a -> Token -> Manager -> IO (Either ServantError a) Source #
Runs TelegramClient
runClient' :: TelegramClient a -> Token -> ClientEnv -> IO (Either ServantError a) Source #
Allows to run TelegramClient
against arbitrary url
runTelegramClient :: Token -> Manager -> TelegramClient a -> IO (Either ServantError a) Source #
Runs TelegramClient
API
type TelegramBotAPI = TelegramBotMessagesAPI :<|> (TelegramBotUpdatesAPI :<|> (TelegramBotChatsAPI :<|> (TelegramBotEditAPI :<|> (TelegramBotQueriesAPI :<|> (TelegramBotGetAPI :<|> (TelegramBotPaymentsAPI :<|> TelegramBotStickersAPI)))))) Source #
api :: Proxy TelegramBotAPI Source #
Proxy for Thelegram Bot API
Types
Telegram Bot's Token