telega-0.2.4: 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 (Live Location)) Source # 
Instance details

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

Associated Types

type Payload (Edit (Live Location)) = (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 (Live Location)) Source # 
Instance details

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

Associated Types

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

Persistable (Send Location) Source # 
Instance details

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

Associated Types

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

Persistable (Send Poll) Source # 
Instance details

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

Associated Types

type Payload (Send Poll) = (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 (Send (Caption :&: Audio)) Source # 
Instance details

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

Associated Types

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

Methods

payload :: Payload (Send (Caption :&: Audio)) -> Object Source #

endpoint :: Payload (Send (Caption :&: Audio)) -> String Source #

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

persist_ :: Payload (Send (Caption :&: Audio)) -> Telegram e () 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 #

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 #

Methods

payload :: Payload (Send (Caption :&: Video)) -> Object Source #

endpoint :: Payload (Send (Caption :&: Video)) -> String Source #

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

persist_ :: Payload (Send (Caption :&: Video)) -> Telegram e () 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 #

Methods

payload :: Payload (Send (Caption :&: Voice)) -> Object Source #

endpoint :: Payload (Send (Caption :&: Voice)) -> String Source #

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

persist_ :: Payload (Send (Caption :&: Voice)) -> Telegram e () Source #

Persistable (Promote Member) Source # 
Instance details

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

Associated Types

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

Persistable (Restrict Member) Source # 
Instance details

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

Associated Types

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

Persistable (Unban Member) Source # 
Instance details

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

Associated Types

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

Persistable (Kick Member) Source # 
Instance details

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

Associated Types

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