def __init__(self, type, media, thumb=None, caption=None, parse_mode=None):
        """
        Represents a general file to be sent.

        https://core.telegram.org/bots/api#inputmediadocument
        

        Parameters:
        
        :param type: Type of the result, must be document
        :type  type: str|unicode
        
        :param media: File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
        :type  media: str|unicode
        

        Optional keyword parameters:
        
        :param thumb: Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail‘s width and height should not exceed 90. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
        :type  thumb: pytgbot.api_types.sendable.files.InputFile | str|unicode
        
        :param caption: Optional. Caption of the document to be sent, 0-1024 characters
        :type  caption: str|unicode
        
        :param parse_mode: Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
        :type  parse_mode: str|unicode
        """
        super(InputMediaDocument, self).__init__()
        from pytgbot.api_types.sendable.files import InputFile
        
        assert_type_or_raise(type, unicode_type, parameter_name="type")
        self.type = type
        
        assert_type_or_raise(media, unicode_type, parameter_name="media")
        self.media = media
        
        assert_type_or_raise(thumb, None, InputFile, unicode_type, parameter_name="thumb")
        self.thumb = thumb
        
        assert_type_or_raise(caption, None, unicode_type, parameter_name="caption")
        self.caption = caption
        
        assert_type_or_raise(parse_mode, None, unicode_type, parameter_name="parse_mode")
        self.parse_mode = parse_mode
def __init__ ( self , type , media , thumb = None , caption = None , parse_mode = None ) : super ( InputMediaDocument , self ) . __init__ ( ) from pytgbot . api_types . sendable . files import InputFile assert_type_or_raise ( type , unicode_type , parameter_name = "type" ) self . type = type assert_type_or_raise ( media , unicode_type , parameter_name = "media" ) self . media = media assert_type_or_raise ( thumb , None , InputFile , unicode_type , parameter_name = "thumb" ) self . thumb = thumb assert_type_or_raise ( caption , None , unicode_type , parameter_name = "caption" ) self . caption = caption assert_type_or_raise ( parse_mode , None , unicode_type , parameter_name = "parse_mode" ) self . parse_mode = parse_mode
Represents a general file to be sent.

        https://core.telegram.org/bots/api#inputmediadocument
        

        Parameters:
        
        :param type: Type of the result, must be document
        :type  type: str|unicode
        
        :param media: File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
        :type  media: str|unicode
        

        Optional keyword parameters:
        
        :param thumb: Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail‘s width and height should not exceed 90. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
        :type  thumb: pytgbot.api_types.sendable.files.InputFile | str|unicode
        
        :param caption: Optional. Caption of the document to be sent, 0-1024 characters
        :type  caption: str|unicode
        
        :param parse_mode: Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
        :type  parse_mode: str|unicode