Set state for a particular user. ! Note that you should create a record if it does not exist, and if a record with state already exists, you need to update a record.
(self, chat_id, user_id, state,
business_connection_id=None,
message_thread_id=None,
bot_id=None,
)
| 22 | raise NotImplementedError |
| 23 | |
| 24 | def set_state(self, chat_id, user_id, state, |
| 25 | business_connection_id=None, |
| 26 | message_thread_id=None, |
| 27 | bot_id=None, |
| 28 | ): |
| 29 | """ |
| 30 | Set state for a particular user. |
| 31 | |
| 32 | ! Note that you should create a |
| 33 | record if it does not exist, and |
| 34 | if a record with state already exists, |
| 35 | you need to update a record. |
| 36 | """ |
| 37 | raise NotImplementedError |
| 38 | |
| 39 | def delete_state(self, chat_id, user_id, |
| 40 | business_connection_id=None, |