def onAck(self, entity): pass helper.log(entity) #formattedDate = datetime.datetime.fromtimestamp(self.sentCache[entity.getId()][0]).strftime('%d-%m-%Y %H:%M') #print("%s [%s]:%s"%(self.username, formattedDate, self.sentCache[entity.getId()][1])) if entity.getClass() == "message": print(entity.getId(), "Sent")
def log(self, deep=False): helper.log(self) if deep: helper.log(self.message_entity)