tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PostStoryArgs Struct Reference

Arguments for Api::postStory. More...

#include <Types.h>

Public Attributes

std::uint32_t activePeriod { }
 Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400.
std::string businessConnectionId { }
 Unique identifier of the business connection.
std::shared_ptr< InputStoryContent > content { }
 Content of the story.
std::vector< std::shared_ptr< StoryArea > > areas = { }
 A JSON-serialized list of clickable areas to be shown on the story.
std::string caption = ""
 Caption of the story, 0-2048 characters after entities parsing.
std::vector< std::shared_ptr< MessageEntity > > captionEntities = { }
 A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode.
std::string parseMode = ""
 Mode for parsing entities in the story caption. See formatting options for more details.
bool postToChatPage = false
 Pass True to keep the story accessible after it expires.
bool protectContent = false
 Pass True if the content of the story must be protected from forwarding and screenshotting.
std::vector< InputFileAttachment > attachments = { }
 Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument as attach://<name> and use the same name in InputFileAttachment.

Detailed Description

Arguments for Api::postStory.

Definition at line 17888 of file Types.h.

Member Data Documentation

◆ activePeriod

std::uint32_t TgBot::PostStoryArgs::activePeriod { }

Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400.

Definition at line 17893 of file Types.h.

◆ areas

std::vector<std::shared_ptr<StoryArea> > TgBot::PostStoryArgs::areas = { }

A JSON-serialized list of clickable areas to be shown on the story.

Definition at line 17908 of file Types.h.

◆ attachments

std::vector<InputFileAttachment> TgBot::PostStoryArgs::attachments = { }

Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument as attach://<name> and use the same name in InputFileAttachment.

Definition at line 17943 of file Types.h.

◆ businessConnectionId

std::string TgBot::PostStoryArgs::businessConnectionId { }

Unique identifier of the business connection.

Definition at line 17898 of file Types.h.

◆ caption

std::string TgBot::PostStoryArgs::caption = ""

Caption of the story, 0-2048 characters after entities parsing.

Definition at line 17913 of file Types.h.

◆ captionEntities

std::vector<std::shared_ptr<MessageEntity> > TgBot::PostStoryArgs::captionEntities = { }

A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode.

Definition at line 17919 of file Types.h.

◆ content

std::shared_ptr<InputStoryContent> TgBot::PostStoryArgs::content { }

Content of the story.

Definition at line 17903 of file Types.h.

◆ parseMode

std::string TgBot::PostStoryArgs::parseMode = ""

Mode for parsing entities in the story caption. See formatting options for more details.

Definition at line 17925 of file Types.h.

◆ postToChatPage

bool TgBot::PostStoryArgs::postToChatPage = false

Pass True to keep the story accessible after it expires.

Definition at line 17930 of file Types.h.

◆ protectContent

bool TgBot::PostStoryArgs::protectContent = false

Pass True if the content of the story must be protected from forwarding and screenshotting.

Definition at line 17936 of file Types.h.


The documentation for this struct was generated from the following file: