List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
startLiveStory Class Referencefinal

Inherits Function.

Description

Starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats.

Returns object_ptr<StartLiveStoryResult>.

Public Fields

int53 chat_id_
 Identifier of the chat that will start the live story. Pass Saved Messages chat identifier when starting a live story on behalf of the current user, or a channel chat identifier.
 
object_ptr< StoryPrivacySettingsprivacy_settings_
 The privacy settings for the story; ignored for stories posted on behalf of channel chats.
 
bool protect_content_
 Pass true if the content of the story must be protected from screenshotting.
 
bool is_rtmp_stream_
 Pass true to create an RTMP stream instead of an ordinary group call.
 
bool enable_messages_
 Pass true to allow viewers of the story to send messages.
 
int53 paid_message_star_count_
 The minimum number of Telegram Stars that must be paid by viewers for each sent message to the call; 0-getOption("paid_group_call_message_star_count_max").
 

Public Types

using ReturnType = object_ptr< StartLiveStoryResult >
 Typedef for the type returned by the function.
 

Public Instance Methods

 startLiveStory ()
 
 startLiveStory (int53 chat_id_, object_ptr< StoryPrivacySettings > &&privacy_settings_, bool protect_content_, bool is_rtmp_stream_, bool enable_messages_, int53 paid_message_star_count_)
 
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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 1253467958
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ startLiveStory() [1/2]

Default constructor for a function, which starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats.

Returns object_ptr<StartLiveStoryResult>.

◆ startLiveStory() [2/2]

startLiveStory ( int53  chat_id_,
object_ptr< StoryPrivacySettings > &&  privacy_settings_,
bool  protect_content_,
bool  is_rtmp_stream_,
bool  enable_messages_,
int53  paid_message_star_count_ 
)

Creates a function, which starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats.

Returns object_ptr<StartLiveStoryResult>.

Parameters
[in]chat_id_Identifier of the chat that will start the live story. Pass Saved Messages chat identifier when starting a live story on behalf of the current user, or a channel chat identifier.
[in]privacy_settings_The privacy settings for the story; ignored for stories posted on behalf of channel chats.
[in]protect_content_Pass true if the content of the story must be protected from screenshotting.
[in]is_rtmp_stream_Pass true to create an RTMP stream instead of an ordinary group call.
[in]enable_messages_Pass true to allow viewers of the story to send messages.
[in]paid_message_star_count_The minimum number of Telegram Stars that must be paid by viewers for each sent message to the call; 0-getOption("paid_group_call_message_star_count_max").

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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