def send(self): self.message.reply_text("Je spraakbericht is ontvangen", reply_to_message_id=self.reply_to_message_id) if free_Mb() < 80: self.message.reply_text( "Opgelet, slechts {}Mb vrije ruimte!".format(free_Mb()), reply_to_message_id=self.reply_to_message_id)
def send(self): with open(self.compressed_file_path, 'rb') as file: #we reply in telegram with the photo as feedback #self.message.reply_photo(file, reply_to_message_id=self.reply_to_message_id) self.message.reply_text('dankjewel voor de foto!') if free_Mb() < 80: self.message.reply_text("Opgelet, slechts {}Mb vrije ruimte!".format(free_Mb()), reply_to_message_id=self.reply_to_message_id) #we send to photo frame email if SEND_EMAIL_OF_PICS: send_mail(self.compressed_file_path, self.message)