raito.plugins.conversations.waiter module¶
- class raito.plugins.conversations.waiter.Waiter(text, number, message, retry)[исходный код]¶
Базовые классы:
objectContainer for conversation result.
- Параметры:
- async raito.plugins.conversations.waiter.wait_for(raito, context, *filters)[исходный код]¶
Wait for the next message from user that matches given filters.
This function sets special state
raito__conversationin FSM and suspends coroutine execution until user sends a message that passes all provided filters. Result is wrapped intoWaiter.- Параметры:
raito (Raito) – Current
Raitoinstancecontext (FSMContext) – FSM context for current chat
filters (CallbackType) – Sequence of aiogram filters
- Результат:
Conversation result with text, parsed number and original message
- Исключение:
RuntimeError – If handler object not found during filter execution
asyncio.CancelledError – If conversation was cancelled
- Тип результата: