Class CopyMessage

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<CopyMessage, MessageId>
io.github.natanimn.telebof.requests.service.CopyMessage

public class CopyMessage extends AbstractBaseRequest<CopyMessage, MessageId>
CopyMessage class. Return MessageId on success
Since:
3 March 2025
See Also:
  • Constructor Details

    • CopyMessage

      public CopyMessage(Object chat, Object fromChatId, int messageId, Api api)
  • Method Details

    • messageThreadId

      public CopyMessage messageThreadId(int message_thread_id)
      Optional
      Parameters:
      message_thread_id - Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
      Returns:
      CopyMessage
    • parseMode

      public CopyMessage parseMode(ParseMode parse_mode)
      Optional
      Parameters:
      parse_mode - Mode for parsing entities in the new caption.
      Returns:
      CopyMessage
    • disableNotification

      public CopyMessage disableNotification(boolean disable_notification)
      Optional
      Parameters:
      disable_notification - Sends the message silently. Users will receive a notification with no sound.
      Returns:
      CopyMessage
    • protectContent

      public CopyMessage protectContent(boolean protect_content)
      Optional
      Parameters:
      protect_content - Protects the contents of the sent message from forwarding and saving
      Returns:
      CopyMessage
    • replyParameters

      public CopyMessage replyParameters(ReplyParameters reply_parameters)
      Optional
      Parameters:
      reply_parameters - Description of the message to reply to
      Returns:
      CopyMessage
    • replyMarkup

      public CopyMessage replyMarkup(Markup reply_markup)
      Optional
      Parameters:
      reply_markup - 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

      public CopyMessage caption(String 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

      public CopyMessage captionEntities(MessageEntity[] caption_entities)
      Optional
      Parameters:
      caption_entities - A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode
      Returns:
      CopyMessage
    • showCaptionAboveMedia

      public CopyMessage showCaptionAboveMedia(boolean show_caption_above_media)
      Optional
      Parameters:
      show_caption_above_media - Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.
      Returns:
      CopyMessage
    • videoStartTimestamp

      public CopyMessage videoStartTimestamp(int video_start_timestamp)
      Optional
      Parameters:
      video_start_timestamp - New start timestamp for the forwarded video in the message
      Returns:
      CopyMessage