Fix PicklePersistence.flush() with only bot_data (#2017)

This commit is contained in:
Bibo-Joshi 2020-07-10 11:10:53 +02:00 committed by GitHub
parent 9288e4f2e4
commit ff4bb15fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ class PicklePersistence(BasePersistence):
""" Will save all data in memory to pickle file(s).
"""
if self.single_file:
if self.user_data or self.chat_data or self.conversations:
if self.user_data or self.chat_data or self.bot_data or self.conversations:
self.dump_singlefile()
else:
if self.user_data: