code: def to_array(self):
          
          array = super(InlineQueryResultMpeg4Gif, self).to_array()
          array['type'] = u(self.type)  # py2: type unicode, py3: type str
  
          array['id'] = u(self.id)  # py2: type unicode, py3: type str
  
          array['mpeg4_url'] = u(self.mpeg4_url)  # py2: type unicode, py3: type str
  
          array['thumb_url'] = u(self.thumb_url)  # py2: type unicode, py3: type str
  
          if self.mpeg4_width is not None:
              array['mpeg4_width'] = int(self.mpeg4_width)  # type int
          if self.mpeg4_height is not None:
              array['mpeg4_height'] = int(self.mpeg4_height)  # type int
          if self.mpeg4_duration is not None:
              array['mpeg4_duration'] = int(self.mpeg4_duration)  # type int
          if self.title is not None:
              array['title'] = u(self.title)  # py2: type unicode, py3: type str
  
          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.reply_markup is not None:
              array['reply_markup'] = self.reply_markup.to_array()  # type InlineKeyboardMarkup
  
          if self.input_message_content is not None:
              array['input_message_content'] = self.input_message_content.to_array()  # type InputMessageContent
  
          return array
docs: Serializes this InlineQueryResultMpeg4Gif to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict