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

Telegram.Bot.API.UpdatingMessages

Synopsis

editMessageText

data EditMessageTextRequest Source #

Request parameters for editMessageText.

Constructors

EditMessageTextRequest 

Fields

Instances

Instances details
Generic EditMessageTextRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Associated Types

type Rep EditMessageTextRequest :: Type -> Type #

FromJSON EditMessageTextRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Methods

parseJSON :: Value -> Parser EditMessageTextRequest

parseJSONList :: Value -> Parser [EditMessageTextRequest]

ToJSON EditMessageTextRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageTextRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageTextRequest = D1 ('MetaData "EditMessageTextRequest" "Telegram.Bot.API.UpdatingMessages" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "EditMessageTextRequest" 'PrefixI 'True) (((S1 ('MetaSel ('Just "editMessageTextChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeChatId)) :*: S1 ('MetaSel ('Just "editMessageTextMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId))) :*: (S1 ('MetaSel ('Just "editMessageTextInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: S1 ('MetaSel ('Just "editMessageTextText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "editMessageTextParseMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ParseMode)) :*: S1 ('MetaSel ('Just "editMessageEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity]))) :*: (S1 ('MetaSel ('Just "editMessageTextDisableWebPagePreview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "editMessageTextReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup))))))

data EditMessageCaptionRequest Source #

Request parameters for editMessageCaption.

Constructors

EditMessageCaptionRequest 

Fields

Instances

Instances details
Generic EditMessageCaptionRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Associated Types

type Rep EditMessageCaptionRequest :: Type -> Type #

FromJSON EditMessageCaptionRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Methods

parseJSON :: Value -> Parser EditMessageCaptionRequest

parseJSONList :: Value -> Parser [EditMessageCaptionRequest]

ToJSON EditMessageCaptionRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageCaptionRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageCaptionRequest = D1 ('MetaData "EditMessageCaptionRequest" "Telegram.Bot.API.UpdatingMessages" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "EditMessageCaptionRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "editMessageCaptionChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeChatId)) :*: (S1 ('MetaSel ('Just "editMessageCaptionMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: S1 ('MetaSel ('Just "editMessageCaptionInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)))) :*: ((S1 ('MetaSel ('Just "editMessageCaptionCaption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "editMessageCaptionParseMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ParseMode))) :*: (S1 ('MetaSel ('Just "editMessageCaptionCaptionEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: S1 ('MetaSel ('Just "editMessageCaptionReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup))))))

data EditMessageMediaRequest Source #

Request parameters for editMessageMedia.

Constructors

EditMessageMediaRequest 

Fields

Instances

Instances details
Generic EditMessageMediaRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Associated Types

type Rep EditMessageMediaRequest :: Type -> Type #

ToJSON EditMessageMediaRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageMediaRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageMediaRequest = D1 ('MetaData "EditMessageMediaRequest" "Telegram.Bot.API.UpdatingMessages" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "EditMessageMediaRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "editMessageMediaChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeChatId)) :*: S1 ('MetaSel ('Just "editMessageMediaMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId))) :*: (S1 ('MetaSel ('Just "editMessageMediaInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: (S1 ('MetaSel ('Just "editMessageMediaMedia") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMedia) :*: S1 ('MetaSel ('Just "editMessageMediaReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup))))))

data EditMessageReplyMarkupRequest Source #

Request parameters for editMessageReplyMarkup.

Constructors

EditMessageReplyMarkupRequest 

Fields

Instances

Instances details
Generic EditMessageReplyMarkupRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Associated Types

type Rep EditMessageReplyMarkupRequest :: Type -> Type #

FromJSON EditMessageReplyMarkupRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

ToJSON EditMessageReplyMarkupRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageReplyMarkupRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep EditMessageReplyMarkupRequest = D1 ('MetaData "EditMessageReplyMarkupRequest" "Telegram.Bot.API.UpdatingMessages" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "EditMessageReplyMarkupRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "editMessageReplyMarkupChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeChatId)) :*: S1 ('MetaSel ('Just "editMessageReplyMarkupMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId))) :*: (S1 ('MetaSel ('Just "editMessageReplyMarkupInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: S1 ('MetaSel ('Just "editMessageReplyMarkupReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup)))))

data StopPollRequest Source #

Request parameters for stopPoll.

Constructors

StopPollRequest 

Fields

Instances

Instances details
Generic StopPollRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Associated Types

type Rep StopPollRequest :: Type -> Type #

FromJSON StopPollRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Methods

parseJSON :: Value -> Parser StopPollRequest

parseJSONList :: Value -> Parser [StopPollRequest]

ToJSON StopPollRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

Methods

toJSON :: StopPollRequest -> Value

toEncoding :: StopPollRequest -> Encoding

toJSONList :: [StopPollRequest] -> Value

toEncodingList :: [StopPollRequest] -> Encoding

type Rep StopPollRequest Source # 
Instance details

Defined in Telegram.Bot.API.UpdatingMessages

type Rep StopPollRequest = D1 ('MetaData "StopPollRequest" "Telegram.Bot.API.UpdatingMessages" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "StopPollRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "stopPollChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: (S1 ('MetaSel ('Just "stopPollMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: S1 ('MetaSel ('Just "stopPollReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup)))))

type EditMessageText = "editMessageText" :> (ReqBody '[JSON] EditMessageTextRequest :> Post '[JSON] (Response (Either Bool Message))) Source #

editMessageText :: EditMessageTextRequest -> ClientM (Response (Either Bool Message)) Source #

Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

type EditMessageCaption = "editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] (Response (Either Bool Message))) Source #

editMessageCaption :: EditMessageCaptionRequest -> ClientM (Response (Either Bool Message)) Source #

Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

type EditMessageMedia = "editMessageMedia" :> (ReqBody '[JSON] EditMessageMediaRequest :> Post '[JSON] (Response (Either Bool Message))) Source #

editMessageMedia :: EditMessageMediaRequest -> ClientM (Response (Either Bool Message)) Source #

Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

type EditMessageReplyMarkup = "editMessageReplyMarkup" :> (ReqBody '[JSON] EditMessageReplyMarkupRequest :> Post '[JSON] (Response (Either Bool Message))) Source #

editMessageReplyMarkup :: EditMessageReplyMarkupRequest -> ClientM (Response (Either Bool Message)) Source #

Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

type StopPoll = "stopPoll" :> (ReqBody '[JSON] StopPollRequest :> Post '[JSON] (Response Poll)) Source #

stopPoll :: StopPollRequest -> ClientM (Response Poll) Source #

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.