TDLib
|
Inherits td::td_api::Object.
Public Attributes | |
int32 | id_ |
Unique story identifier among stories of the given sender. | |
int53 | sender_chat_id_ |
Identifier of the chat that posted the story. | |
int32 | date_ |
Point in time (Unix timestamp) when the story was published. | |
bool | is_being_sent_ |
True, if the story is being sent by the current user. | |
bool | is_being_edited_ |
True, if the story is being edited by the current user. | |
bool | is_edited_ |
True, if the story was edited. | |
bool | is_pinned_ |
True, if the story is saved in the sender's profile and will be available there after expiration. | |
bool | is_visible_only_for_self_ |
True, if the story is visible only for the current user. | |
bool | can_be_deleted_ |
True, if the story can be deleted. | |
bool | can_be_edited_ |
True, if the story can be edited. | |
bool | can_be_forwarded_ |
True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden. | |
bool | can_be_replied_ |
True, if the story can be replied in the chat with the story sender. | |
bool | can_toggle_is_pinned_ |
True, if the story's is_pinned value can be changed. | |
bool | can_get_viewers_ |
True, if users viewed the story can be received through getStoryViewers. | |
bool | has_expired_viewers_ |
True, if users viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago. | |
object_ptr< storyInteractionInfo > | interaction_info_ |
Information about interactions with the story; may be null if the story isn't owned or there were no interactions. | |
object_ptr< ReactionType > | chosen_reaction_type_ |
Type of the chosen reaction; may be null if none. | |
object_ptr< StoryPrivacySettings > | privacy_settings_ |
Privacy rules affecting story visibility; may be approximate for non-owned stories. | |
object_ptr< StoryContent > | content_ |
Content of the story. | |
array< object_ptr< storyArea > > | areas_ |
Clickable areas to be shown on the story content. | |
object_ptr< formattedText > | caption_ |
Caption of the story. | |
Static Public Attributes | |
static const std::int32_t | ID = 901434066 |
Identifier uniquely determining a type of the object. | |
Represents a story.
td::td_api::story::story | ( | ) |
Represents a story.
td::td_api::story::story | ( | int32 | id_, |
int53 | sender_chat_id_, | ||
int32 | date_, | ||
bool | is_being_sent_, | ||
bool | is_being_edited_, | ||
bool | is_edited_, | ||
bool | is_pinned_, | ||
bool | is_visible_only_for_self_, | ||
bool | can_be_deleted_, | ||
bool | can_be_edited_, | ||
bool | can_be_forwarded_, | ||
bool | can_be_replied_, | ||
bool | can_toggle_is_pinned_, | ||
bool | can_get_viewers_, | ||
bool | has_expired_viewers_, | ||
object_ptr< storyInteractionInfo > && | interaction_info_, | ||
object_ptr< ReactionType > && | chosen_reaction_type_, | ||
object_ptr< StoryPrivacySettings > && | privacy_settings_, | ||
object_ptr< StoryContent > && | content_, | ||
array< object_ptr< storyArea > > && | areas_, | ||
object_ptr< formattedText > && | caption_ | ||
) |
Represents a story.
[in] | id_ | Unique story identifier among stories of the given sender. |
[in] | sender_chat_id_ | Identifier of the chat that posted the story. |
[in] | date_ | Point in time (Unix timestamp) when the story was published. |
[in] | is_being_sent_ | True, if the story is being sent by the current user. |
[in] | is_being_edited_ | True, if the story is being edited by the current user. |
[in] | is_edited_ | True, if the story was edited. |
[in] | is_pinned_ | True, if the story is saved in the sender's profile and will be available there after expiration. |
[in] | is_visible_only_for_self_ | True, if the story is visible only for the current user. |
[in] | can_be_deleted_ | True, if the story can be deleted. |
[in] | can_be_edited_ | True, if the story can be edited. |
[in] | can_be_forwarded_ | True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden. |
[in] | can_be_replied_ | True, if the story can be replied in the chat with the story sender. |
[in] | can_toggle_is_pinned_ | True, if the story's is_pinned value can be changed. |
[in] | can_get_viewers_ | True, if users viewed the story can be received through getStoryViewers. |
[in] | has_expired_viewers_ | True, if users viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago. |
[in] | interaction_info_ | Information about interactions with the story; may be null if the story isn't owned or there were no interactions. |
[in] | chosen_reaction_type_ | Type of the chosen reaction; may be null if none. |
[in] | privacy_settings_ | Privacy rules affecting story visibility; may be approximate for non-owned stories. |
[in] | content_ | Content of the story. |
[in] | areas_ | Clickable areas to be shown on the story content. |
[in] | caption_ | Caption of the story. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.