|
TDLib
|
Inherits Function.
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>.
Public Types | |
| using | ReturnType = object_ptr<ok> |
| Typedef for the type returned by the function. | |
Public Member Functions | |
| setOption () | |
| setOption (string const &name_, object_ptr< OptionValue > &&value_) | |
| 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 | 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 Public Attributes | |
| static const std::int32_t | ID = 2114670322 |
| Identifier uniquely determining a type of the object. | |
| 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 | ( | string const & | name_, |
| object_ptr< OptionValue > && | value_ ) |
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>.
| [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. |
|
finalvirtual |