Use this method to copy messages of any kind. The method is analogous to the method forwardMessages, but the copied
message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
Methods
create()
create($chatId, $fromChatId, \TgBotApi\BotApiBase\Method\int $messageId, array $data = null
)
Static
Parameters
$chatId
$fromChatId
$messageId
$data
fill()
fill(array $data, array $forbidden = array()
)
Inherited
Parameters
$data
array
$forbidden
array
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
Properties
Optional. Pass True, if the message should be sent even if the specified replied-to message is not found.
$allowSendingWithoutReply : boolean | null
Optional. Media caption (may also be used when resending photos by file_id), 0-1024 characters\.
$caption : string | null
Optional. Sends the message silently. Users will receive a notification with no sound.
$disableNotification : boolean | null
Unique identifier for the chat where the original
message was sent (or channel username in the format @channelusername).
$fromChatId : integer | string
Message identifier in the chat specified in from_chat_id.
$messageId : integer
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width
text or inline URLs in the media caption.
$parseMode : string | null
Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,
instructions to remove reply keyboard or to force a reply from the user.
$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null
Optional. If the message is a reply, ID of the original message.
$replyToMessageId : integer | null