telega-0.2.2: Telegram Bot API binding

Safe HaskellNone
LanguageHaskell2010

Network.API.Telegram.Bot.Property.Persistable

Documentation

class Persistable action where Source #

Minimal complete definition

payload, endpoint

Associated Types

type Payload action = payload | payload -> action Source #

Methods

payload :: Payload action -> Object Source #

endpoint :: Payload action -> String Source #

persist :: FromJSON r => Payload action -> Telegram e r Source #

Instances
Persistable (Send Message) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

Associated Types

type Payload (Send Message) = (payload :: *) Source #

Persistable (Send obj) => Persistable (Reply obj :: Capacity object) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Property.Persistable

Associated Types

type Payload (Reply obj) = (payload :: *) Source #

Methods

payload :: Payload (Reply obj) -> Object Source #

endpoint :: Payload (Reply obj) -> String Source #

persist :: FromJSON r => Payload (Reply obj) -> Telegram e r Source #

Persistable (Send obj) => Persistable (Silenlty (Send :: * -> Capacity *) obj :: *) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Property.Persistable

Associated Types

type Payload (Silenlty Send obj) = (payload :: *) Source #

Methods

payload :: Payload (Silenlty Send obj) -> Object Source #

endpoint :: Payload (Silenlty Send obj) -> String Source #

persist :: FromJSON r => Payload (Silenlty Send obj) -> Telegram e r Source #

data Capacity object Source #

Constructors

Send object 
Reply object 
Instances
Persistable (Send Message) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

Associated Types

type Payload (Send Message) = (payload :: *) Source #

Persistable (Send obj) => Persistable (Reply obj :: Capacity object) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Property.Persistable

Associated Types

type Payload (Reply obj) = (payload :: *) Source #

Methods

payload :: Payload (Reply obj) -> Object Source #

endpoint :: Payload (Reply obj) -> String Source #

persist :: FromJSON r => Payload (Reply obj) -> Telegram e r Source #

type Payload (Send Message) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

type Payload (Reply obj :: Capacity object) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Property.Persistable

type Payload (Reply obj :: Capacity object) = Int :&: Payload (Send obj)

data Silenlty (capacity :: * -> Capacity *) object Source #

Constructors

Silenlty 
Instances
Persistable (Send obj) => Persistable (Silenlty (Send :: * -> Capacity *) obj :: *) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Property.Persistable

Associated Types

type Payload (Silenlty Send obj) = (payload :: *) Source #

Methods

payload :: Payload (Silenlty Send obj) -> Object Source #

endpoint :: Payload (Silenlty Send obj) -> String Source #

persist :: FromJSON r => Payload (Silenlty Send obj) -> Telegram e r Source #

type Payload (Silenlty (Send :: * -> Capacity *) obj :: *) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Property.Persistable

type Payload (Silenlty (Send :: * -> Capacity *) obj :: *) = Silenlty (Send :: * -> Capacity *) obj :&: Payload (Send obj)