def _fetch_person_ims_history(self, user_info, api_handle):
try:
ims = api_handle.im.list().body
SlackArchive.api_call_delay()
except Error as err:
self.mongo.db.z_errors.insert_one({'_id': time.time(),
'ctx': ('fetch_person_ims ' +
user_info['login']),
'msg': str(err)})
self.log.exception('Fetch person groups error %s', str(err))
return
api_loader = functools.partial(api_handle.im.history,
inclusive=0, count=1000)
self._fetch_stream_messages(api_loader, ims['ims'])
评论列表
文章目录