telegram-bot-simple-0.5.2: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.MakingRequests

Documentation

botBaseUrl :: Token -> BaseUrl Source #

defaultRunBot :: Token -> ClientM a -> IO (Either ClientError a) Source #

data Response a Source #

Instances

Instances details
Show a => Show (Response a) Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

showsPrec :: Int -> Response a -> ShowS #

show :: Response a -> String #

showList :: [Response a] -> ShowS #

Generic (Response a) Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Associated Types

type Rep (Response a) :: Type -> Type #

Methods

from :: Response a -> Rep (Response a) x #

to :: Rep (Response a) x -> Response a #

FromJSON a => FromJSON (Response a) Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

parseJSON :: Value -> Parser (Response a)

parseJSONList :: Value -> Parser [Response a]

ToJSON a => ToJSON (Response a) Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

toJSON :: Response a -> Value

toEncoding :: Response a -> Encoding

toJSONList :: [Response a] -> Value

toEncodingList :: [Response a] -> Encoding

type Rep (Response a) Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

type Rep (Response a) = D1 ('MetaData "Response" "Telegram.Bot.API.MakingRequests" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Response" 'PrefixI 'True) ((S1 ('MetaSel ('Just "responseOk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "responseDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "responseResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: (S1 ('MetaSel ('Just "responseErrorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ResponseParameters))))))

newtype Token Source #

Constructors

Token Text 

Instances

Instances details
Eq Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

(==) :: Token -> Token -> Bool #

(/=) :: Token -> Token -> Bool #

Show Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

IsString Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

fromString :: String -> Token #

FromJSON Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

parseJSON :: Value -> Parser Token

parseJSONList :: Value -> Parser [Token]

ToJSON Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

Methods

toJSON :: Token -> Value

toEncoding :: Token -> Encoding

toJSONList :: [Token] -> Value

toEncodingList :: [Token] -> Encoding

ToHttpApiData Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests

FromHttpApiData Token Source # 
Instance details

Defined in Telegram.Bot.API.MakingRequests