docs: def to_array(self):
          """
          Serializes this InputMediaAudio to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict
          """
          array = super(InputMediaAudio, self).to_array()
          # 'type' given by superclass
          # 'media' given by superclass
          if self.thumb is not None:
              if isinstance(self.thumb, InputFile):
                  array['thumb'] = None  # type InputFile
              elif isinstance(self.thumb, str):
                  array['thumb'] = u(self.thumb)  # py2: type unicode, py3: type str
              else:
                  raise TypeError('Unknown type, must be one of InputFile, str.')
              # end if
          # 'caption' given by superclass
          # 'parse_mode' given by superclass
          if self.duration is not None:
              array['duration'] = int(self.duration)  # type int
          if self.performer is not None:
              array['performer'] = u(self.performer)  # py2: type unicode, py3: type str
          if self.title is not None:
              array['title'] = u(self.title)  # py2: type unicode, py3: type str
          return array