List of all members | Public Fields | Public Instance Methods | Static Public Attributes
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 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 Fields

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

Public Instance Methods

 messageGroupCall ()
 
 messageGroupCall (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 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 = 1370396295
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messageGroupCall() [1/2]

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 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 ( 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 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]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.

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: