code: def to_array(self):
          
          array = super(InputMediaAudio, self).to_array()
          array['type'] = u(self.type)  # py2: type unicode, py3: type str
  
          array['media'] = u(self.media)  # py2: type unicode, py3: type str
  
          if self.thumb is not None:
              if isinstance(self.thumb, InputFile):
                  array['thumb'] = self.thumb.to_array()  # 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
  
          if self.caption is not None:
              array['caption'] = u(self.caption)  # py2: type unicode, py3: type str
  
          if self.parse_mode is not None:
              array['parse_mode'] = u(self.parse_mode)  # py2: type unicode, py3: type str
  
          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
docs: Serializes this InputMediaAudio to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict