

from ..utils import Object


class SetOption(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

    Attributes:
        ID (:obj:`str`): ``SetOption``

    Args:
        name (:obj:`str`):
            The name of the option 
        value (:class:`telegram.api.types.OptionValue`):
            The new value of the option; pass null to reset option value to a default value

    Returns:
        Ok

    Raises:
        :class:`telegram.Error`
    """
    ID = "setOption"

    def __init__(self, name, value, extra=None, **kwargs):
        self.extra = extra
        self.name = name  # str
        self.value = value  # OptionValue

    @staticmethod
    def read(q: dict, *args) -> "SetOption":
        name = q.get('name')
        value = Object.read(q.get('value'))
        return SetOption(name, value)

899b84de8dd8c0de3bf093d2b1955d89bf0a3756
<mask token>


class SetOption(Object):
    <mask token>
    <mask token>

    def __init__(self, name, value, extra=None, **kwargs):
        self.extra = extra
        self.name = name
        self.value = value

    @staticmethod
    def read(q: dict, *args) ->'SetOption':
        name = q.get('name')
        value = Object.read(q.get('value'))
        return SetOption(name, value)

<mask token>


class SetOption(Object):
    <mask token>
    ID = 'setOption'

    def __init__(self, name, value, extra=None, **kwargs):
        self.extra = extra
        self.name = name
        self.value = value

    @staticmethod
    def read(q: dict, *args) ->'SetOption':
        name = q.get('name')
        value = Object.read(q.get('value'))
        return SetOption(name, value)

<mask token>


class SetOption(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

    Attributes:
        ID (:obj:`str`): ``SetOption``

    Args:
        name (:obj:`str`):
            The name of the option 
        value (:class:`telegram.api.types.OptionValue`):
            The new value of the option; pass null to reset option value to a default value

    Returns:
        Ok

    Raises:
        :class:`telegram.Error`
    """
    ID = 'setOption'

    def __init__(self, name, value, extra=None, **kwargs):
        self.extra = extra
        self.name = name
        self.value = value

    @staticmethod
    def read(q: dict, *args) ->'SetOption':
        name = q.get('name')
        value = Object.read(q.get('value'))
        return SetOption(name, value)

from ..utils import Object


class SetOption(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

    Attributes:
        ID (:obj:`str`): ``SetOption``

    Args:
        name (:obj:`str`):
            The name of the option 
        value (:class:`telegram.api.types.OptionValue`):
            The new value of the option; pass null to reset option value to a default value

    Returns:
        Ok

    Raises:
        :class:`telegram.Error`
    """
    ID = 'setOption'

    def __init__(self, name, value, extra=None, **kwargs):
        self.extra = extra
        self.name = name
        self.value = value

    @staticmethod
    def read(q: dict, *args) ->'SetOption':
        name = q.get('name')
        value = Object.read(q.get('value'))
        return SetOption(name, value)



from ..utils import Object


class SetOption(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

    Attributes:
        ID (:obj:`str`): ``SetOption``

    Args:
        name (:obj:`str`):
            The name of the option 
        value (:class:`telegram.api.types.OptionValue`):
            The new value of the option; pass null to reset option value to a default value

    Returns:
        Ok

    Raises:
        :class:`telegram.Error`
    """
    ID = "setOption"

    def __init__(self, name, value, extra=None, **kwargs):
        self.extra = extra
        self.name = name  # str
        self.value = value  # OptionValue

    @staticmethod
    def read(q: dict, *args) -> "SetOption":
        name = q.get('name')
        value = Object.read(q.get('value'))
        return SetOption(name, value)
