Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runClient :: TelegramClient a -> Token -> Manager -> IO (Either ServantError a)
- runClient' :: TelegramClient a -> Token -> ClientEnv -> IO (Either ServantError a)
- type TelegramBotAPI = TelegramBotMessagesAPI :<|> (TelegramBotUpdatesAPI :<|> (TelegramBotChatsAPI :<|> (TelegramBotEditAPI :<|> (TelegramBotQueriesAPI :<|> (TelegramBotGetAPI :<|> TelegramBotPaymentsAPI)))))
- 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
API
type TelegramBotAPI = TelegramBotMessagesAPI :<|> (TelegramBotUpdatesAPI :<|> (TelegramBotChatsAPI :<|> (TelegramBotEditAPI :<|> (TelegramBotQueriesAPI :<|> (TelegramBotGetAPI :<|> TelegramBotPaymentsAPI))))) Source #
api :: Proxy TelegramBotAPI Source #
Proxy for Thelegram Bot API
Types
Telegram Bot's Token