Skip to content

Drop BasePersistence.insert/replace_bot #2882

@Bibo-Joshi

Description

@Bibo-Joshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions