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

Inherits Function.

Description

Informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization.

Returns object_ptr<Ok>.

Public Types

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

Public Member Functions

 setApplicationVerificationToken ()
 setApplicationVerificationToken (int53 verification_id_, string const &token_)
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

string token_
 Play Integrity API token for the Android application, or secret from push notification for the iOS application for application verification, or reCAPTCHA token for reCAPTCHA verifications; pass an empty string to abort verification and receive the error "VERIFICATION_FAILED" for the request.
int53 verification_id_
 Unique identifier for the verification process as received from updateApplicationVerificationRequired or updateApplicationRecaptchaVerificationRequired.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ setApplicationVerificationToken() [1/2]

setApplicationVerificationToken ( )

Default constructor for a function, which informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization.

Returns object_ptr<Ok>.

◆ setApplicationVerificationToken() [2/2]

setApplicationVerificationToken ( int53 verification_id_,
string const & token_ )

Creates a function, which informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization.

Returns object_ptr<Ok>.

Parameters
[in]verification_id_Unique identifier for the verification process as received from updateApplicationVerificationRequired or updateApplicationRecaptchaVerificationRequired.
[in]token_Play Integrity API token for the Android application, or secret from push notification for the iOS application for application verification, or reCAPTCHA token for reCAPTCHA verifications; pass an empty string to abort verification and receive the error "VERIFICATION_FAILED" for the request.

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: