def onMessageReceived(self, messageId, jid, messageContent, timestamp,
    wantsReceipt, pushName, isBroadCast):
    formattedDate = datetime.datetime.fromtimestamp(timestamp).strftime(
        '%d-%m-%Y %H:%M')
print('%s [%s]:%s' % (jid, formattedDate, messageContent))
Yowsup WhatsApp получить номер телефона