Get current state for current user. :return: Current state name. :rtype: str
(self)
| 56 | ) |
| 57 | |
| 58 | async def get(self) -> str: |
| 59 | """ |
| 60 | Get current state for current user. |
| 61 | |
| 62 | :return: Current state name. |
| 63 | :rtype: str |
| 64 | """ |
| 65 | |
| 66 | chat_id, user_id, business_connection_id, bot_id, message_thread_id = ( |
| 67 | resolve_context(self.message, self.bot.bot_id) |
| 68 | ) |
| 69 | return await self.bot.get_state( |
| 70 | chat_id=chat_id, |
| 71 | user_id=user_id, |
| 72 | business_connection_id=business_connection_id, |
| 73 | bot_id=bot_id, |
| 74 | message_thread_id=message_thread_id, |
| 75 | ) |
| 76 | |
| 77 | async def delete(self) -> bool: |
| 78 | """ |
nothing calls this directly
no test coverage detected