Skip to content

Commit

Permalink
Merge pull request #2404 from thebocher/patch-1
Browse files Browse the repository at this point in the history
Update pickle_storage.py
  • Loading branch information
coder2020official authored Oct 10, 2024
2 parents a6ab6b4 + 57938f7 commit ec5a3c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telebot/storage/pickle_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def save(
message_thread_id,
bot_id,
)
data = self._read_from_file()
data[_key]["data"] = data
self._write_to_file(data)
file_data = self._read_from_file()
file_data[_key]["data"] = data
self._write_to_file(file_data)
return True

def __str__(self) -> str:
Expand Down

0 comments on commit ec5a3c7

Please sign in to comment.