A bytes byte array with the file’s data to send (for example, by using text.encode('utf-8')). A default file name will be used.
A bytes io.IOBase stream over the file to send (for example, by using open(file, 'rb')). Its .name property will be used for the file name, or a default if it doesn’t have one.
у телетона вот описание