-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Protected function _update_state
#2880
Comments
Because it's part of the internal logic of
Not unlikely, yes. Overhauling
You could do the following instead:
|
Thank you for the prompt response. I found another solution, writing the state directly to |
Issue I am facing
Why is the
_update_state
function fromConversationHandler
protected?In my context, there is a certain task that should be performed once a week, and send some participants a "pass" for further dialogue.
At the moment I have to make extra queries to the database in order to save the "pass" and check if there is one every time a person writes something.
However, using
_update_state
after receiving the object viadispatcher
greatly simplifies this task.Are there any problems related to using this function, will it become invalid in future updates and will I have to rewrite this part of the logic?
Traceback to the issue
No response
Related part of your code
Operating System
Linux
Version of Python, python-telegram-bot & dependencies
The text was updated successfully, but these errors were encountered: