docs: def from_array(array):
          """
          Deserialize a new MediaGroupMessage from a given dictionary.
  
          :return: new MediaGroupMessage instance.
          :rtype: MediaGroupMessage
          """
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
          from pytgbot.api_types.sendable.input_media import InputMediaPhoto
          from pytgbot.api_types.sendable.input_media import InputMediaVideo
          
  
          data = {}
          if isinstance(array.get('media'), InputMediaPhoto):
              data['media'] = InputMediaPhoto.from_array_list(array.get('media'), list_level=1)
          elif isinstance(array.get('media'), InputMediaVideo):
              data['media'] = InputMediaVideo.from_array_list(array.get('media'), list_level=1)
          else:
              raise TypeError('Unknown type, must be one of InputMediaPhoto, InputMediaVideo.')
          # end if
          if array.get('chat_id') is None:
              data['receiver'] = None
          elif isinstance(array.get('chat_id'), None):
              data['receiver'] = None(array.get('chat_id'))
          elif isinstance(array.get('chat_id'), str):
              data['receiver'] = u(array.get('chat_id'))
          elif isinstance(array.get('chat_id'), int):
              data['receiver'] = int(array.get('chat_id'))
          else:
              raise TypeError('Unknown type, must be one of None, str, int or None.')
          # end if
          if array.get('reply_to_message_id') is None:
              data['reply_id'] = None
          elif isinstance(array.get('reply_to_message_id'), DEFAULT_MESSAGE_ID):
              data['reply_id'] = DEFAULT_MESSAGE_ID(array.get('reply_to_message_id'))
          elif isinstance(array.get('reply_to_message_id'), int):
              data['reply_id'] = int(array.get('reply_to_message_id'))
          else:
              raise TypeError('Unknown type, must be one of DEFAULT_MESSAGE_ID, int or None.')
          # end if
          data['disable_notification'] = bool(array.get('disable_notification')) if array.get('disable_notification') is not None else None
          return MediaGroupMessage(**data)