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

type Returning action :: * Source #

Methods

payload :: Payload action -> Object Source #

endpoint :: Payload action -> String Source #

persist :: FromJSON (Returning action) => Payload action -> Telegram e (Returning action) Source #

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

Instances
Persistable (Delete Message) Source # 
Instance details

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

Associated Types

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

type Returning (Delete Message) :: * Source #

Persistable (Edit Text) Source # 
Instance details

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

Associated Types

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

type Returning (Edit Text) :: * Source #

Persistable (Edit (Live Location)) Source # 
Instance details

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

Associated Types

type Payload (Edit (Live Location)) = (payload :: *) Source #

type Returning (Edit (Live Location)) :: * Source #

Persistable (Edit Keyboard) Source # 
Instance details

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

Associated Types

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

type Returning (Edit Keyboard) :: * 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 #

type Returning (Reply a) :: * Source #

Methods

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

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

persist :: FromJSON (Returning (Reply a)) => Payload (Reply a) -> Telegram e (Returning (Reply a)) 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 #

type Returning (Send Text) :: * Source #

Persistable (Send Audio) Source # 
Instance details

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

Associated Types

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

type Returning (Send Audio) :: * Source #

Persistable (Send Document) Source # 
Instance details

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

Associated Types

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

type Returning (Send Document) :: * Source #

Persistable (Send Photo) Source # 
Instance details

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

Associated Types

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

type Returning (Send Photo) :: * Source #

Persistable (Send Video) Source # 
Instance details

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

Associated Types

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

type Returning (Send Video) :: * Source #

Persistable (Send Voice) Source # 
Instance details

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

Associated Types

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

type Returning (Send Voice) :: * Source #

Persistable (Send (Live Location)) Source # 
Instance details

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

Associated Types

type Payload (Send (Live Location)) = (payload :: *) Source #

type Returning (Send (Live Location)) :: * Source #

Persistable (Send Location) Source # 
Instance details

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

Associated Types

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

type Returning (Send Location) :: * Source #

Persistable (Send Poll) Source # 
Instance details

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

Associated Types

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

type Returning (Send Poll) :: * 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 #

type Returning (Send (Text :&: Keyboard)) :: * Source #

Persistable (Send (Caption :&: Audio)) Source # 
Instance details

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

Associated Types

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

type Returning (Send (Caption :&: Audio)) :: * Source #

Persistable (Send (Caption :&: Document)) Source # 
Instance details

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

Associated Types

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

type Returning (Send (Caption :&: Document)) :: * Source #

Persistable (Send (Caption :&: Photo)) Source # 
Instance details

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

Associated Types

type Payload (Send (Caption :&: Photo)) = (payload :: *) Source #

type Returning (Send (Caption :&: Photo)) :: * Source #

Persistable (Send (Caption :&: Video)) Source # 
Instance details

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

Associated Types

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

type Returning (Send (Caption :&: Video)) :: * Source #

Persistable (Send (Caption :&: Voice)) Source # 
Instance details

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

Associated Types

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

type Returning (Send (Caption :&: Voice)) :: * Source #

Persistable (Forward Message) Source # 
Instance details

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

Associated Types

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

type Returning (Forward Message) :: * Source #

Persistable (Trigger Notification) Source # 
Instance details

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

Associated Types

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

type Returning (Trigger Notification) :: * Source #

Persistable (Promote Member) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Member

Associated Types

type Payload (Promote Member) = (payload :: *) Source #

type Returning (Promote Member) :: * Source #

Persistable (Restrict Member) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Member

Associated Types

type Payload (Restrict Member) = (payload :: *) Source #

type Returning (Restrict Member) :: * Source #

Persistable (Unban Member) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Member

Associated Types

type Payload (Unban Member) = (payload :: *) Source #

type Returning (Unban Member) :: * Source #

Persistable (Kick Member) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Member

Associated Types

type Payload (Kick Member) = (payload :: *) Source #

type Returning (Kick Member) :: * 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 #

type Returning (Silently Reply obj) :: * 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 #

type Returning (Silently Send obj) :: * 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 #

type Returning (Silently Forward obj) :: * Source #