intra_max_chatbot/bot/states.py
2026-04-03 00:30:24 +03:00

16 lines
764 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from maxapi.context import State, StatesGroup
class AuthStates(StatesGroup):
waiting_contact = State() # Ожидаем шаринг контакта
class TicketStates(StatesGroup):
waiting_description = State() # Ожидаем первое сообщение с описанием
collecting_attachments = State() # Накапливаем доп. файлы/текст
confirming = State() # Предпросмотр — ждём подтверждения
pending_confirm = State() # Быстрый ответ — ждём подтверждения отправки
class CommentStates(StatesGroup):
waiting_text = State() # Ожидаем текст комментария к заявке