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

Telegram.Bot.API.Webhook

Documentation

setUpWebhook :: SetWebhookRequest -> ClientEnv -> IO (Either ClientError ()) Source #

webhookApp :: BotApp model action -> BotEnv model action -> Application Source #

deleteWebhook :: ClientEnv -> IO (Either ClientError ()) Source #

data SetWebhookRequest Source #

Instances

Instances details
Generic SetWebhookRequest Source # 
Instance details

Defined in Telegram.Bot.API.Webhook

Associated Types

type Rep SetWebhookRequest :: Type -> Type #

ToJSON SetWebhookRequest Source # 
Instance details

Defined in Telegram.Bot.API.Webhook

ToMultipart Tmp SetWebhookRequest Source # 
Instance details

Defined in Telegram.Bot.API.Webhook

Methods

toMultipart :: SetWebhookRequest -> MultipartData Tmp

type Rep SetWebhookRequest Source # 
Instance details

Defined in Telegram.Bot.API.Webhook

type Rep SetWebhookRequest = D1 ('MetaData "SetWebhookRequest" "Telegram.Bot.API.Webhook" "telegram-bot-simple-0.8-inplace" 'False) (C1 ('MetaCons "SetWebhookRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "setWebhookUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: (S1 ('MetaSel ('Just "setWebhookCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InputFile)) :*: S1 ('MetaSel ('Just "setWebhookIpAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))) :*: ((S1 ('MetaSel ('Just "setWebhookMaxConnections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "setWebhookAllowedUpdates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [String]))) :*: (S1 ('MetaSel ('Just "setWebhookDropPendingUpdates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "setWebhookSecretToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String))))))