As discussed in the dev chat before, just writing down so that we don't forget
- Remove
insert/replace_bot. Remove corresponding notes and instead leave a not saying that bot instances should not be serialized and instead persistence.bot may be used to re-insert bots into data.
- Use
pickle.Un/Pickler to do the above for PicklePersistence - mock up at https://nekobin.com/lifojagumo.py
- Make sure that
deepcopy(TelegramObject) keep the bot instance - add note about that to documentation
- Make sure that
pickle.dumps(TelegramObject) ignores the bot instance - add note about that to documentation
Reference for developers: we had discussions in this eg here and up
As discussed in the dev chat before, just writing down so that we don't forget
insert/replace_bot. Remove corresponding notes and instead leave a not saying that bot instances should not be serialized and insteadpersistence.botmay be used to re-insert bots into data.pickle.Un/Picklerto do the above forPicklePersistence- mock up at https://nekobin.com/lifojagumo.pydeepcopy(TelegramObject)keep the bot instance - add note about that to documentationpickle.dumps(TelegramObject)ignores the bot instance - add note about that to documentationReference for developers: we had discussions in this eg here and up