Deletes state and data for current user. .. warning:: This method deletes state and associated data for current user.
(self)
| 75 | ) |
| 76 | |
| 77 | async def delete(self) -> bool: |
| 78 | """ |
| 79 | Deletes state and data for current user. |
| 80 | |
| 81 | .. warning:: |
| 82 | |
| 83 | This method deletes state and associated data for current user. |
| 84 | """ |
| 85 | chat_id, user_id, business_connection_id, bot_id, message_thread_id = ( |
| 86 | resolve_context(self.message, self.bot.bot_id) |
| 87 | ) |
| 88 | return await self.bot.delete_state( |
| 89 | chat_id=chat_id, |
| 90 | user_id=user_id, |
| 91 | business_connection_id=business_connection_id, |
| 92 | bot_id=bot_id, |
| 93 | message_thread_id=message_thread_id, |
| 94 | ) |
| 95 | |
| 96 | async def reset_data(self) -> bool: |
| 97 | """ |
nothing calls this directly
no test coverage detected