telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Methods.CopyMessage

Contents

Synopsis

copyMessage

type CopyMessage = "copyMessage" :> (ReqBody '[JSON] CopyMessageRequest :> Post '[JSON] (Response CopyMessageId)) Source #

copyMessage :: CopyMessageRequest -> ClientM (Response CopyMessageId) Source #

Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.

data CopyMessageRequest Source #

Request parameters for copyMessage.

Constructors

CopyMessageRequest 

Fields

Instances

Instances details
Generic CopyMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CopyMessage

Associated Types

type Rep CopyMessageRequest :: Type -> Type #

FromJSON CopyMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CopyMessage

Methods

parseJSON :: Value -> Parser CopyMessageRequest

parseJSONList :: Value -> Parser [CopyMessageRequest]

ToJSON CopyMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CopyMessage

type Rep CopyMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CopyMessage

type Rep CopyMessageRequest = D1 ('MetaData "CopyMessageRequest" "Telegram.Bot.API.Methods.CopyMessage" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "CopyMessageRequest" 'PrefixI 'True) (((S1 ('MetaSel ('Just "copyMessageChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: (S1 ('MetaSel ('Just "copyMessageMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Message)) :*: S1 ('MetaSel ('Just "copyMessageFromChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId))) :*: (S1 ('MetaSel ('Just "copyMessageMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: (S1 ('MetaSel ('Just "copyMessageCaption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "copyMessageParseMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ParseMode))))) :*: ((S1 ('MetaSel ('Just "copyMessageCaptionEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: (S1 ('MetaSel ('Just "copyMessageDisableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "copyMessageProtectContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "copyMessageReplyToMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: (S1 ('MetaSel ('Just "copyMessageAllowSendingWithoutReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "copyMessageReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup)))))))