telegram-raw-api-0.1.0: Servant bindings to the Telegram bot API

Safe HaskellNone
LanguageHaskell2010

Web.Telegram.API.Update

Documentation

data Polling Source #

Instances
Eq Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

Methods

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

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

Show Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

Generic Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

Associated Types

type Rep Polling :: Type -> Type #

Methods

from :: Polling -> Rep Polling x #

to :: Rep Polling x -> Polling #

ToJSON Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

FromJSON Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

Default Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

Methods

def :: Polling #

type Rep Polling Source # 
Instance details

Defined in Web.Telegram.API.Update

data WebhookSetting Source #

Instances
Eq WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

Show WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

Generic WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

Associated Types

type Rep WebhookSetting :: Type -> Type #

ToJSON WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

FromJSON WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

Default WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

Methods

def :: WebhookSetting #

type Rep WebhookSetting Source # 
Instance details

Defined in Web.Telegram.API.Update

type Rep WebhookSetting = D1 (MetaData "WebhookSetting" "Web.Telegram.API.Update" "telegram-raw-api-0.1.0-6INSX8mwqV2A3qTaYNvjDy" False) (C1 (MetaCons "WebhookSetting" PrefixI True) (S1 (MetaSel (Just "url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "maxConnections") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "allowedUpdates") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [UpdateType])))))

type GetUpdates = Base :> ("getUpdates" :> (ReqBody '[JSON] Polling :> Get '[JSON] (ReqResult [Update]))) Source #

type SetWebhook = Base :> ("setWebhook" :> (ReqBody '[JSON] WebhookSetting :> Get '[JSON] (ReqResult Bool))) Source #

type DeleteWebhook = Base :> ("deleteWebhook" :> Get '[JSON] (ReqResult Bool)) Source #

type GetWebhookInfo = Base :> ("getWebhookInfo" :> Get '[JSON] (ReqResult WebhookInfo)) Source #