Closed RuofengX closed 3 weeks ago
try_to_input_channel()
seems return a None value.
https://github.com/Lonami/grammers/blob/6a3cdbe122f9e5d733bd61d38b3daa993d4613ce/lib/grammers-client/src/client/chats.rs#L842
It can confirmed that this issue surely happens when provide a id of a quited chat with a user(or bot) to join_chat
function.
Join group also have same issue. Join channel is ok for now.
I am using cached packed chat to join a group/bot after quitting them, is that the reason? Or does packed chat data became invalid after quit?
Only public channels can be joined with this request, but it's true the library should not panic.
Packed chats are only valid in the session that acquired them. Logging in to the same account is considered a new session. But the panic here is trying to join something other than a channel.
After post this issue I realize that I am not working on the latest commit, so I ran
cargo update
then run my program, the panic still: