Class ForwardMessage

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<ForwardMessage, Message>
io.github.natanimn.telebof.requests.service.ForwardMessage

public class ForwardMessage extends AbstractBaseRequest<ForwardMessage, Message>
ForwardMessage class. Returns Message on success.
Since:
3 March 2025
See Also:
  • Constructor Details

    • ForwardMessage

      public ForwardMessage(Object chat_id, Object from_chat_id, int message_id, Api api)
      Required
      Parameters:
      chat_id - chat id
      from_chat_id - from chat id
      message_id - message id
      api - api
  • Method Details

    • messageThreadId

      public ForwardMessage 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:
      ForwardMessage
    • disableNotification

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

      public ForwardMessage protectContent(boolean protect_content)
      Optional
      Parameters:
      protect_content - Protects the contents of the forwarded message from forwarding and saving
      Returns:
      ForwardMessage
    • videoStartTimestamp

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