Inherits Function.
Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story.
Returns object_ptr<Story>.
Public Fields | |
| int53 | chat_id_ |
| Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user. | |
| object_ptr< InputStoryContent > | content_ |
| Content of the story. | |
| object_ptr< inputStoryAreas > | areas_ |
| Clickable rectangle areas to be shown on the story media; pass null if none. | |
| object_ptr< formattedText > | caption_ |
| Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities only if getOption("can_use_text_entities_in_story_caption"). | |
| object_ptr< StoryPrivacySettings > | privacy_settings_ |
| The privacy settings for the story; ignored for stories posted on behalf of supergroup and channel chats. | |
| array< int32 > | album_ids_ |
| Identifiers of story albums to which the story will be added upon posting. An album can have up to getOption("story_album_story_count_max"). | |
| int32 | active_period_ |
| Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise. | |
| object_ptr< storyFullId > | from_story_full_id_ |
| Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost of another story. | |
| bool | is_posted_to_chat_page_ |
| Pass true to keep the story accessible after expiration. | |
| bool | protect_content_ |
| Pass true if the content of the story must be protected from forwarding and screenshotting. | |
Public Types | |
| using | ReturnType = object_ptr< story > |
| Typedef for the type returned by the function. | |
Public Instance Methods | |
| postStory () | |
| postStory (int53 chat_id_, object_ptr< InputStoryContent > &&content_, object_ptr< inputStoryAreas > &&areas_, object_ptr< formattedText > &&caption_, object_ptr< StoryPrivacySettings > &&privacy_settings_, array< int32 > &&album_ids_, int32 active_period_, object_ptr< storyFullId > &&from_story_full_id_, bool is_posted_to_chat_page_, bool protect_content_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = -1725643742 |
| Identifier uniquely determining a type of the object. | |
| postStory | ( | ) |
Default constructor for a function, which posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story.
Returns object_ptr<Story>.
| postStory | ( | int53 | chat_id_, |
| object_ptr< InputStoryContent > && | content_, | ||
| object_ptr< inputStoryAreas > && | areas_, | ||
| object_ptr< formattedText > && | caption_, | ||
| object_ptr< StoryPrivacySettings > && | privacy_settings_, | ||
| array< int32 > && | album_ids_, | ||
| int32 | active_period_, | ||
| object_ptr< storyFullId > && | from_story_full_id_, | ||
| bool | is_posted_to_chat_page_, | ||
| bool | protect_content_ | ||
| ) |
Creates a function, which posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story.
Returns object_ptr<Story>.
| [in] | chat_id_ | Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user. |
| [in] | content_ | Content of the story. |
| [in] | areas_ | Clickable rectangle areas to be shown on the story media; pass null if none. |
| [in] | caption_ | Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities only if getOption("can_use_text_entities_in_story_caption"). |
| [in] | privacy_settings_ | The privacy settings for the story; ignored for stories posted on behalf of supergroup and channel chats. |
| [in] | album_ids_ | Identifiers of story albums to which the story will be added upon posting. An album can have up to getOption("story_album_story_count_max"). |
| [in] | active_period_ | Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise. |
| [in] | from_story_full_id_ | Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost of another story. |
| [in] | is_posted_to_chat_page_ | Pass true to keep the story accessible after expiration. |
| [in] | protect_content_ | Pass true if the content of the story must be protected from forwarding and screenshotting. |
|
finalvirtual |