TDLib
|
Inherits td::td_api::Function.
Public Types | |
using | ReturnType = object_ptr< story > |
Typedef for the type returned by the function. | |
Public Member Functions | |
sendStory () | |
sendStory (int53 chat_id_, object_ptr< InputStoryContent > &&content_, object_ptr< inputStoryAreas > &&areas_, object_ptr< formattedText > &&caption_, object_ptr< StoryPrivacySettings > &&privacy_settings_, int32 active_period_, bool is_pinned_, bool protect_content_) | |
std::int32_t | get_id () const final |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Member Functions inherited from td::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 |
Public Attributes | |
int53 | chat_id_ |
Identifier of the chat that will post the story. | |
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. | |
object_ptr< StoryPrivacySettings > | privacy_settings_ |
The privacy settings for the story. | |
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. | |
bool | is_pinned_ |
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. | |
Static Public Attributes | |
static const std::int32_t | ID = 87179940 |
Identifier uniquely determining a type of the object. | |
Sends a new story to a chat; requires can_post_stories rights for channel chats. Returns a temporary story.
Returns object_ptr<Story>.
td::td_api::sendStory::sendStory | ( | ) |
Default constructor for a function, which sends a new story to a chat; requires can_post_stories rights for channel chats. Returns a temporary story.
Returns object_ptr<Story>.
td::td_api::sendStory::sendStory | ( | int53 | chat_id_, |
object_ptr< InputStoryContent > && | content_, | ||
object_ptr< inputStoryAreas > && | areas_, | ||
object_ptr< formattedText > && | caption_, | ||
object_ptr< StoryPrivacySettings > && | privacy_settings_, | ||
int32 | active_period_, | ||
bool | is_pinned_, | ||
bool | protect_content_ | ||
) |
Creates a function, which sends a new story to a chat; requires can_post_stories rights for channel chats. Returns a temporary story.
Returns object_ptr<Story>.
[in] | chat_id_ | Identifier of the chat that will post the story. |
[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. |
[in] | privacy_settings_ | The privacy settings for the story. |
[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] | is_pinned_ | 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. |
|
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.