Class CopyMessage
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<CopyMessage,MessageId>
io.github.natanimn.telebof.requests.service.CopyMessage
CopyMessage class.
Return
MessageId on success- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] captionEntities) OptionaldirectMessagesTopicId(int directMessagesTopicId) OptionaldisableNotification(boolean disableNotification) OptionalmessageEffectId(String messageEffectId) OptionalmessageThreadId(int messageThreadId) OptionalOptionalprotectContent(boolean protectContent) OptionalreplyMarkup(Markup replyMarkup) OptionalreplyParameters(ReplyParameters replyParameters) OptionalshowCaptionAboveMedia(boolean showCaptionAboveMedia) OptionalsuggestedPostParameters(SuggestedPostParameters suggestedPostParameters) OptionalvideoStartTimestamp(int videoStartTimestamp) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
CopyMessage
-
-
Method Details
-
messageThreadId
Optional- Parameters:
messageThreadId- Unique identifier for the target message thread (topic) of the forum; for forum supergroups only- Returns:
CopyMessage
-
parseMode
Optional- Parameters:
parseMode- Mode for parsing entities in the new caption.- Returns:
CopyMessage
-
disableNotification
Optional- Parameters:
disableNotification- Sends the message silently. Users will receive a notification with no sound.- Returns:
CopyMessage
-
protectContent
Optional- Parameters:
protectContent- Protects the contents of the sent message from forwarding and saving- Returns:
CopyMessage
-
replyParameters
Optional- Parameters:
replyParameters- Description of the message to reply to- Returns:
CopyMessage
-
replyMarkup
Optional- Parameters:
replyMarkup- Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user- Returns:
CopyMessage
-
caption
Optional- Parameters:
caption- New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept- Returns:
CopyMessage
-
captionEntities
Optional- Parameters:
captionEntities- A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode- Returns:
CopyMessage
-
showCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.- Returns:
CopyMessage
-
videoStartTimestamp
Optional- Parameters:
videoStartTimestamp- New start timestamp for the forwarded video in the message- Returns:
CopyMessage
-
directMessagesTopicId
Optional- Parameters:
directMessagesTopicId- Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat- Returns:
CopyMessage
-
suggestedPostParameters
Optional- Parameters:
suggestedPostParameters- A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.- Returns:
CopyMessage
-
messageEffectId
Optional- Parameters:
messageEffectId- Unique identifier of the message effect to be added to the message; only available when copying to private chats- Returns:
CopyMessage
-