def send_presence_unavailable(self): """docstring for presence_send_unavailable""" #wa = WhatsappMediaClient(self.sendReceipts, timeout = float('Inf')) wa = WhatsappMediaClient(self.sendReceipts, timeout = 5) wa.presenceSendUnavailable() wa.login(self.username, self.password)
def set_status(self, status): #ERROR """ Sets a status message for the users' whatsapp account """ #wa = WhatsappMediaClient(self.sendReceipts, timeout = float('Inf') ) wa = WhatsappMediaClient(self.sendReceipts, timeout = 5 ) wa.login(self.username, self.password) wa.setStatus(status)
def upload_media(self, mediaPath): wa = WhatsappMediaClient(sendReceipts = True) wa.login(self.username, self.password) wa.uploadMedia(mediaPath)