You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add some random data inside bot_data, as it is the only one usable before getting updates.
Generate an update so the persistence is updated in the database.
Restart the bot script.
Expected behaviour
Added data (step 3) should be correctly loaded from database, so *_data dictionaries should contain the same information they had before restarting bot script.
Actual behaviour
Even if database is actually updated, *_dict are empty, so persistence is not restored correctly.
Module this issue is about
ptbcontrib/postgres_persistence/postgrespersistence.py
Steps to reproduce
Use specified module as persistence class.
Build your application loading the persistence.
Add some random data inside
bot_data
, as it is the only one usable before getting updates.Generate an update so the persistence is updated in the database.
Restart the bot script.
Expected behaviour
Added data (step 3) should be correctly loaded from database, so
*_data
dictionaries should contain the same information they had before restarting bot script.Actual behaviour
Even if database is actually updated,
*_dict
are empty, so persistence is not restored correctly.Configuration
Operating System:
Distributor ID: Linuxmint
Release: 21.3
Version of Python, python-telegram-bot & dependencies:
Python 3.12
PTB 21.2
Please Note
This is the first time I'm trying to contribute, so sorry if something is not clear enough.
The text was updated successfully, but these errors were encountered: