def METHOD_NAME(cls, key: str, value: object) -> "RequestParameter":
    """Builds an instance of this class for a given key-value pair that represents the raw
    input as passed along from a method of :class:`telegram.Bot`.
    """
    if not isinstance(value, (str, bytes)) and isinstance(value, Sequence):
        param_values = []
        input_files = []
        for obj in value:
            param_value, input_file = cls._value_and_input_files_from_input(obj)
            if param_value is not None:
                param_values.append(param_value)
            input_files.extend(input_file)
        return RequestParameter(
            name=key, value=param_values, input_files=input_files if input_files else None
        )
    param_value, input_files = cls._value_and_input_files_from_input(value)
    return RequestParameter(
        name=key, value=param_value, input_files=input_files if input_files else None
    )