Skip to content

Commit ff4bb15

Browse files
authored
Fix PicklePersistence.flush() with only bot_data (python-telegram-bot#2017)
1 parent 9288e4f commit ff4bb15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telegram/ext/picklepersistence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def flush(self):
277277
""" Will save all data in memory to pickle file(s).
278278
"""
279279
if self.single_file:
280-
if self.user_data or self.chat_data or self.conversations:
280+
if self.user_data or self.chat_data or self.bot_data or self.conversations:
281281
self.dump_singlefile()
282282
else:
283283
if self.user_data:

0 commit comments

Comments
 (0)