Class PostStory
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<PostStory,Story>
io.github.natanimn.telebof.requests.service.PostStory
PostStory class. Returns
Story on success.- Since:
- 19 August 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPostStory(String businessConnectionId, InputStoryContent content, Integer activePeriod, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionOptionalOptionalcaptionEntities(MessageEntity[] captionEntities) OptionalOptionalpostToChatPage(boolean postToChatPage) OptionalprotectContent(boolean protectContent) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
PostStory
public PostStory(String businessConnectionId, InputStoryContent content, Integer activePeriod, Api api) Required- Parameters:
businessConnectionId- Unique identifier of the business connectioncontent- Content of the storyactivePeriod- Period after which the story is moved to the archive, in secondsapi- api
-
-
Method Details
-
caption
Optional- Parameters:
caption- Caption of the story, 0-2048 characters after entities parsing- Returns:
PostStory
-
parseMode
Optional- Parameters:
parseMode- Mode for parsing entities in the story caption- Returns:
PostStory
-
captionEntities
Optional- Parameters:
captionEntities- A JSON-serialized list of special entities that appear in the caption, which can be specified instead ofparseMode(io.github.natanimn.telebof.enums.ParseMode)- Returns:
PostStory
-
areas
Optional- Parameters:
areas- A JSON-serialized list of clickable areas to be shown on the story- Returns:
PostStory
-
postToChatPage
Optional- Parameters:
postToChatPage- Pass True to keep the story accessible after it expires- Returns:
PostStory
-
protectContent
Optional- Parameters:
protectContent- Pass True if the content of the story must be protected from forwarding and screenshotting- Returns:
PostStory
-