Currently a secret chat is not usable anymore after Telegram is closed and re-opened. Something must be wrong when saving the chat metadata to the local db. After a new start one gets INVALID_PEER_ID so probably its the peer id which is not correct.
Basically the problem stems from not assigning the telegram settings object at the right time and then not executing refreshSecretChats() properly (nothing gets loaded).
Currently a secret chat is not usable anymore after Telegram is closed and re-opened. Something must be wrong when saving the chat metadata to the local db. After a new start one gets INVALID_PEER_ID so probably its the peer id which is not correct.