Skip to content

setOption

Sahri Riza Umami edited this page Dec 8, 2016 · 3 revisions

Sets value of an option.

setOption(name, option, value)

See list of available options on https://core.telegram.org/tdlib/options.
Only writable options can be set.

Option Description
name Name of the option.
option Represents value of an option; Boolean, Empty, Integer, and String.
value New value of the option.

Example

setOption('network_unreachable', 'Boolean', 1)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally