Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Telegram.Bot.API.Methods.CopyMessage
Contents
Synopsis
- type CopyMessage = "copyMessage" :> (ReqBody '[JSON] CopyMessageRequest :> Post '[JSON] (Response CopyMessageId))
- copyMessage :: CopyMessageRequest -> ClientM (Response CopyMessageId)
- data CopyMessageRequest = CopyMessageRequest {
- copyMessageChatId :: SomeChatId
- copyMessageMessageThreadId :: Maybe MessageThreadId
- copyMessageFromChatId :: SomeChatId
- copyMessageMessageId :: MessageId
- copyMessageCaption :: Maybe Text
- copyMessageParseMode :: Maybe ParseMode
- copyMessageCaptionEntities :: Maybe [MessageEntity]
- copyMessageShowCaptionAboveMedia :: Maybe Bool
- copyMessageDisableNotification :: Maybe Bool
- copyMessageProtectContent :: Maybe Bool
- copyMessageReplyToMessageId :: Maybe MessageId
- copyMessageReplyParameters :: Maybe ReplyParameters
- copyMessageReplyMarkup :: Maybe InlineKeyboardMarkup
- defCopyMessage :: SomeChatId -> SomeChatId -> MessageId -> CopyMessageRequest
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
defCopyMessage :: SomeChatId -> SomeChatId -> MessageId -> CopyMessageRequest Source #