telega-0.2.3: 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 #

persist_ :: Payload action -> Telegram e () Source #

Instances
Persistable (Edit Text) Source # 
Instance details

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

Associated Types

type Payload (Edit Text) = (payload :: *) Source #

Persistable (Edit Keyboard) Source # 
Instance details

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

Associated Types

type Payload (Edit Keyboard) = (payload :: *) Source #

Persistable (Edit (Text :&: Keyboard)) Source # 
Instance details

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

Associated Types

type Payload (Edit (Text :&: Keyboard)) = (payload :: *) Source #

Methods

payload :: Payload (Edit (Text :&: Keyboard)) -> Object Source #

endpoint :: Payload (Edit (Text :&: Keyboard)) -> String Source #

persist :: FromJSON r => Payload (Edit (Text :&: Keyboard)) -> Telegram e r Source #

persist_ :: Payload (Edit (Text :&: Keyboard)) -> Telegram e () Source #

Persistable (Send a) => Persistable (Reply a :: *) Source # 
Instance details

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

Associated Types

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

Methods

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

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

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

persist_ :: Payload (Reply a) -> Telegram e () Source #

Persistable (Send Text) Source # 
Instance details

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

Associated Types

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

Persistable (Send Audio) Source # 
Instance details

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

Associated Types

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

Persistable (Send Document) Source # 
Instance details

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

Associated Types

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

Persistable (Send Video) Source # 
Instance details

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

Associated Types

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

Persistable (Send Voice) Source # 
Instance details

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

Associated Types

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

Persistable (Send (Text :&: Keyboard)) Source # 
Instance details

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

Associated Types

type Payload (Send (Text :&: Keyboard)) = (payload :: *) Source #

Methods

payload :: Payload (Send (Text :&: Keyboard)) -> Object Source #

endpoint :: Payload (Send (Text :&: Keyboard)) -> String Source #

persist :: FromJSON r => Payload (Send (Text :&: Keyboard)) -> Telegram e r Source #

persist_ :: Payload (Send (Text :&: Keyboard)) -> Telegram e () Source #

Persistable (Reply obj) => Persistable (Silently Reply obj :: *) Source # 
Instance details

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

Associated Types

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

Methods

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

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

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

persist_ :: Payload (Silently Reply obj) -> Telegram e () Source #

Persistable (Send obj) => Persistable (Silently Send obj :: *) Source # 
Instance details

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

Associated Types

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

Methods

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

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

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

persist_ :: Payload (Silently Send obj) -> Telegram e () Source #

Persistable (Forward obj) => Persistable (Silently (Forward :: * -> *) obj :: *) Source # 
Instance details

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

Associated Types

type Payload (Silently Forward obj) = (payload :: *) Source #

Persistable (Delete Message) Source # 
Instance details

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

Associated Types

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

Persistable (Forward Message) Source # 
Instance details

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

Associated Types

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

Persistable (Trigger Notification) Source # 
Instance details

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

Associated Types

type Payload (Trigger Notification) = (payload :: *) Source #