Replies: 1 comment 2 replies
-
https://t.me/pythontelegrambotgroup/772660 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got 2 conversation handlers(CH). I am afraid that when user enters first CH, and then the second CH (w/o closing the first CH), and keeps continuously doing that, then I will get a lot of memory leaks. Do you think this is something to worry about?
I've read some about how CH work under the hood, and as I understand :
Based on this, I assume every time you switch between CH, w/o closing them, you just don't delete that 1 state manager you had; instead of creating a duplicate state manager per every CH switch, it just changes the value in the state manager's dict. However, I am still unsure if this assumption is valid or not. Thus, is it okay if the user keeps switching between different CH, w/o leaving any of them?
Please clarify this
Beta Was this translation helpful? Give feedback.
All reactions