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

Inherits Function.

Description

Reports messages in a supergroup as spam; requires administrator rights in the supergroup.

Returns object_ptr<Ok>.

Public Types

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

Public Member Functions

 reportSupergroupSpam ()
 reportSupergroupSpam (int53 supergroup_id_, array< int53 > &&message_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

array< int53 > message_ids_
 Identifiers of messages to report. Use messageProperties.can_report_supergroup_spam to check whether the message can be reported.
int53 supergroup_id_
 Supergroup identifier.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ reportSupergroupSpam() [1/2]

reportSupergroupSpam ( )

Default constructor for a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.

Returns object_ptr<Ok>.

◆ reportSupergroupSpam() [2/2]

reportSupergroupSpam ( int53 supergroup_id_,
array< int53 > && message_ids_ )

Creates a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.

Returns object_ptr<Ok>.

Parameters
[in]supergroup_id_Supergroup identifier.
[in]message_ids_Identifiers of messages to report. Use messageProperties.can_report_supergroup_spam to check whether the message can be reported.

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: