get_option_sync


Description:

public OptionValue get_option_sync (string name) throws TDLibError

Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash"

Parameters:

name

The name of the option