TDLib
Loading...
Searching...
No Matches
messageGroupCall Class Referencefinal

Inherits MessageContent.

Description

A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call become active or missed, then the call screen must be hidden.

Public Member Functions

 messageGroupCall ()
 messageGroupCall (int64 unique_id_, bool is_active_, bool was_missed_, bool is_video_, int32 duration_, array< object_ptr< MessageSender > > &&other_participant_ids_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int32 duration_
 Call duration, in seconds; for left calls only.
bool is_active_
 True, if the call is active, i.e. the called user joined the call.
bool is_video_
 True, if the call is a video call.
array< object_ptr< MessageSender > > other_participant_ids_
 Identifiers of some other call participants.
int64 unique_id_
 Persistent unique group call identifier.
bool was_missed_
 True, if the called user missed or declined the call.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageGroupCall() [1/2]

messageGroupCall ( )

A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call become active or missed, then the call screen must be hidden.

◆ messageGroupCall() [2/2]

messageGroupCall ( int64 unique_id_,
bool is_active_,
bool was_missed_,
bool is_video_,
int32 duration_,
array< object_ptr< MessageSender > > && other_participant_ids_ )

A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call become active or missed, then the call screen must be hidden.

Parameters
[in]unique_id_Persistent unique group call identifier.
[in]is_active_True, if the call is active, i.e. the called user joined the call.
[in]was_missed_True, if the called user missed or declined the call.
[in]is_video_True, if the call is a video call.
[in]duration_Call duration, in seconds; for left calls only.
[in]other_participant_ids_Identifiers of some other call participants.

Member Function 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: