createStory
Create a story. USER-ONLY
Parameters
The content of the story.
The story’s interactive areas.
The story’s privacy settings.
The period during which the story will be active.
Whether to add the story to highlights.
Whether to protect the contents of the story from copying and forwarding.
Identifiers of albums to add the story to.
Identifier of the chat including the reposted story.
Identifier of the reposted story.
Whether the reposted story is modified.
The caption to attach.
The caption’s entities.
The parse mode to use for the caption. If omitted, the default parse mode will be used.
The file name to assign if applicable.
The file’s size.
The MIME type to assign if applicable.
Size of each upload chunk in bytes.
Upload abort signal.
A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.
Result
The created story.
Syntax
// Required parameters only.
await client.createStory(chatId, content);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.createStory(chatId, content, {
interactiveAreas,
privacy,
activeFor,
highlight,
isContentProtected,
albumIds,
forwardedFromChatId,
forwardedFromStoryId,
isRepostedStoryModified,
caption,
captionEntities,
parseMode,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
});