Is your feature request related to a problem? Please describe.
When you remove the encryption folder and the storage of the bot while having encryption enabled all messages sent to the bot end up throwing an error that decryption is not possible.
This is expected behaviour since the bot of course not done any exchange of the encryption keys.
Usually this is either handled by contacting another device, verifying it and receiving the keys in that way, or by entering the the security key to generate the decryption keys.
Describe the solution you'd like
I don't see any way to do this with the matrix-bot-sdk. At least the latter process might be worth implementing.
I might also be wrong and a feature link this already exists.
Then it might be helpful to update the documentation about a scenario like this.
Is your feature request related to a problem? Please describe. When you remove the encryption folder and the storage of the bot while having encryption enabled all messages sent to the bot end up throwing an error that decryption is not possible. This is expected behaviour since the bot of course not done any exchange of the encryption keys. Usually this is either handled by contacting another device, verifying it and receiving the keys in that way, or by entering the the security key to generate the decryption keys.
Describe the solution you'd like I don't see any way to do this with the matrix-bot-sdk. At least the latter process might be worth implementing.
I might also be wrong and a feature link this already exists. Then it might be helpful to update the documentation about a scenario like this.