java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<PostStory,Story>
io.github.natanimn.telebof.requests.service.PostStory

public class PostStory extends AbstractBaseRequest<PostStory,Story>
PostStory class. Returns Story on success.
Since:
19 August 2025
See Also:
  • Constructor Details

    • PostStory

      public PostStory(String businessConnectionId, InputStoryContent content, Integer activePeriod, Api api)
      Required
      Parameters:
      businessConnectionId - Unique identifier of the business connection
      content - Content of the story
      activePeriod - Period after which the story is moved to the archive, in seconds
      api - api
  • Method Details

    • caption

      public PostStory caption(String caption)
      Optional
      Parameters:
      caption - Caption of the story, 0-2048 characters after entities parsing
      Returns:
      PostStory
    • parseMode

      public PostStory parseMode(ParseMode parseMode)
      Optional
      Parameters:
      parseMode - Mode for parsing entities in the story caption
      Returns:
      PostStory
    • captionEntities

      public PostStory captionEntities(MessageEntity[] captionEntities)
      Optional
      Parameters:
      captionEntities - A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parseMode(io.github.natanimn.telebof.enums.ParseMode)
      Returns:
      PostStory
    • areas

      public PostStory areas(StoryArea[] areas)
      Optional
      Parameters:
      areas - A JSON-serialized list of clickable areas to be shown on the story
      Returns:
      PostStory
    • postToChatPage

      public PostStory postToChatPage(boolean postToChatPage)
      Optional
      Parameters:
      postToChatPage - Pass True to keep the story accessible after it expires
      Returns:
      PostStory
    • protectContent

      public PostStory protectContent(boolean protectContent)
      Optional
      Parameters:
      protectContent - Pass True if the content of the story must be protected from forwarding and screenshotting
      Returns:
      PostStory