예제 #1
0
    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)
예제 #2
0
 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)
예제 #3
0
    def upload_media(self, mediaPath):

        wa = WhatsappMediaClient(sendReceipts = True)

        wa.login(self.username, self.password)
        wa.uploadMedia(mediaPath)