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

Inherits Function.

Description

Encrypts group call data before sending them over network using tgcalls.

Returns object_ptr<Data>.

Public Fields

int32 group_call_id_
 Group call identifier. The call must not be a video chat.
 
object_ptr< GroupCallDataChanneldata_channel_
 Data channel for which data is encrypted.
 
bytes data_
 Data to encrypt.
 
int32 unencrypted_prefix_size_
 Size of data prefix that must be kept unencrypted.
 

Public Types

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

Public Instance Methods

 encryptGroupCallData ()
 
 encryptGroupCallData (int32 group_call_id_, object_ptr< GroupCallDataChannel > &&data_channel_, bytes const &data_, int32 unencrypted_prefix_size_)
 
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 = -377997690
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ encryptGroupCallData() [1/2]

Default constructor for a function, which encrypts group call data before sending them over network using tgcalls.

Returns object_ptr<Data>.

◆ encryptGroupCallData() [2/2]

encryptGroupCallData ( int32  group_call_id_,
object_ptr< GroupCallDataChannel > &&  data_channel_,
bytes const &  data_,
int32  unencrypted_prefix_size_ 
)

Creates a function, which encrypts group call data before sending them over network using tgcalls.

Returns object_ptr<Data>.

Parameters
[in]group_call_id_Group call identifier. The call must not be a video chat.
[in]data_channel_Data channel for which data is encrypted.
[in]data_Data to encrypt.
[in]unencrypted_prefix_size_Size of data prefix that must be kept unencrypted.

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: