mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-31 16:40:53 +01:00
Fix PicklePersistence.flush() with only bot_data (#2017)
This commit is contained in:
parent
9288e4f2e4
commit
ff4bb15fef
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue