Inherits td::td_api::Function.
|
using | ReturnType = object_ptr< ok > |
| Typedef for the type returned by the function.
|
|
|
string | name_ |
| The name of the option.
|
|
object_ptr< OptionValue > | value_ |
| The new value of the option; pass null to reset option value to a default value.
|
|
|
static const std::int32_t | ID = 2114670322 |
| Identifier uniquely determining a type of the object.
|
|
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.
Returns object_ptr<Ok>.
◆ setOption() [1/2]
td::td_api::setOption::setOption |
( |
| ) |
|
Default constructor for a function, which sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.
Returns object_ptr<Ok>.
◆ setOption() [2/2]
Creates a function, which sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.
Returns object_ptr<Ok>.
- Parameters
-
[in] | name_ | The name of the option. |
[in] | value_ | The new value of the option; pass null to reset option value to a default value. |
◆ get_id()
std::int32_t td::td_api::setOption::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
void td::td_api::setOption::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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: