Class RepostStory

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

public class RepostStory extends AbstractBaseRequest<RepostStory,Story>
RepostStory class. Returns Story on success.
Since:
1.3.0
  • Constructor Details

    • RepostStory

      public RepostStory(String businessConnectionId, long fromChatId, int fromStoryId, int activePeriod, Api api)
      Required
      Parameters:
      businessConnectionId - business connection id
      fromChatId - from chat id
      fromStoryId - from story id
      activePeriod - active period
      api - api
  • Method Details

    • postToChatPage

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

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