tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::acceptOauthRequest Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::acceptOauthRequest:
td::td_api::Function td::TlObject

Public Types

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

Public Member Functions

 acceptOauthRequest ()
 
 acceptOauthRequest (string const &url_, string const &match_code_, bool allow_write_access_, bool allow_phone_number_access_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

string url_
 URL of the OAuth deep link.
 
string match_code_
 The matching code chosen by the user.
 
bool allow_write_access_
 Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages.
 
bool allow_phone_number_access_
 Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number.
 

Static Public Attributes

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

Detailed Description

Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown.

Returns object_ptr<HttpUrl>.

Definition at line 87510 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 87552 of file td_api.h.

Constructor & Destructor Documentation

◆ acceptOauthRequest() [1/2]

td::td_api::acceptOauthRequest::acceptOauthRequest ( )

Default constructor for a function, which accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown.

Returns object_ptr<HttpUrl>.

◆ acceptOauthRequest() [2/2]

td::td_api::acceptOauthRequest::acceptOauthRequest ( string const &  url_,
string const &  match_code_,
bool  allow_write_access_,
bool  allow_phone_number_access_ 
)

Creates a function, which accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown.

Returns object_ptr<HttpUrl>.

Parameters
[in]url_URL of the OAuth deep link.
[in]match_code_The matching code chosen by the user.
[in]allow_write_access_Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages.
[in]allow_phone_number_access_Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number.

Member Function Documentation

◆ store()

void td::td_api::acceptOauthRequest::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 td::TlObject.

Member Data Documentation

◆ allow_phone_number_access_

bool td::td_api::acceptOauthRequest::allow_phone_number_access_

Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number.

Definition at line 87527 of file td_api.h.

◆ allow_write_access_

bool td::td_api::acceptOauthRequest::allow_write_access_

Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages.

Definition at line 87525 of file td_api.h.

◆ ID

const std::int32_t td::td_api::acceptOauthRequest::ID = -427442108
static

Identifier uniquely determining a type of the object.

Definition at line 87549 of file td_api.h.

◆ match_code_

string td::td_api::acceptOauthRequest::match_code_

The matching code chosen by the user.

Definition at line 87523 of file td_api.h.

◆ url_

string td::td_api::acceptOauthRequest::url_

URL of the OAuth deep link.

Definition at line 87521 of file td_api.h.


The documentation for this class was generated from the following file: