Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type CopyMessage = "copyMessage" :> (ReqBody '[JSON] CopyMessageRequest :> Post '[JSON] (Response CopyMessageId))
- copyMessage :: CopyMessageRequest -> ClientM (Response CopyMessageId)
- data CopyMessageRequest = CopyMessageRequest {
- copyMessageChatId :: SomeChatId
- copyMessageMessageThreadId :: Maybe Message
- copyMessageFromChatId :: SomeChatId
- copyMessageMessageId :: MessageId
- copyMessageCaption :: Maybe Text
- copyMessageParseMode :: Maybe ParseMode
- copyMessageCaptionEntities :: Maybe [MessageEntity]
- copyMessageDisableNotification :: Maybe Bool
- copyMessageProtectContent :: Maybe Bool
- copyMessageReplyToMessageId :: Maybe MessageId
- copyMessageAllowSendingWithoutReply :: Maybe Bool
- copyMessageReplyMarkup :: Maybe InlineKeyboardMarkup
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
.
CopyMessageRequest | |
|